Lines Matching defs:channel

97 void SoundPool::addToRestartList(SoundChannel* channel)
101 mRestart.push_back(channel);
106 void SoundPool::addToStopList(SoundChannel* channel)
110 mStop.push_back(channel);
130 SoundChannel* channel;
131 ALOGV("Getting channel from stop list");
133 channel = *iter;
136 if (channel != 0) {
138 channel->stop();
145 SoundChannel* channel;
146 ALOGV("Getting channel from list");
148 channel = *iter;
151 if (channel != 0) {
153 channel->nextEvent();
247 SoundChannel* channel;
264 // allocate a channel
265 channel = allocateChannel_l(priority);
267 // no channel allocated - return 0
268 if (!channel) {
269 ALOGV("No channel allocated");
275 ALOGV("play channel %p state = %d", channel, channel->state());
276 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate);
283 SoundChannel* channel = NULL;
285 // allocate a channel
289 channel = *iter;
291 ALOGV("Allocated active channel");
296 if (channel) {
297 channel->setPriority(priority);
303 mChannels.insert(iter, channel);
305 return channel;
308 // move a channel from its current position to the front of the list
309 void SoundPool::moveToFront_l(SoundChannel* channel)
312 if (*iter == channel) {
314 mChannels.push_front(channel);
324 SoundChannel* channel = findChannel(channelID);
325 if (channel) {
326 channel->pause();
335 SoundChannel* channel = &mChannelPool[i];
336 channel->autoPause();
344 SoundChannel* channel = findChannel(channelID);
345 if (channel) {
346 channel->resume();
355 SoundChannel* channel = &mChannelPool[i];
356 channel->autoResume();
364 SoundChannel* channel = findChannel(channelID);
365 if (channel) {
366 channel->stop();
368 channel = findNextChannel(channelID);
369 if (channel)
370 channel->clearNextEvent();
377 SoundChannel* channel = findChannel(channelID);
378 if (channel) {
379 channel->setVolume(leftVolume, rightVolume);
387 SoundChannel* channel = findChannel(channelID);
388 if (channel) {
389 channel->setPriority(priority);
397 SoundChannel* channel = findChannel(channelID);
398 if (channel) {
399 channel->setLoop(loop);
407 SoundChannel* channel = findChannel(channelID);
408 if (channel) {
409 channel->setRate(rate);
414 void SoundPool::done_l(SoundChannel* channel)
416 ALOGV("done_l(%d)", channel->channelID());
418 if (channel->nextChannelID() != 0) {
420 addToRestartList(channel);
426 moveToFront_l(channel);
523 ALOGE("Sample channel count (%d) out of range", numChannels);
564 ALOGV("channel %d stolen - event queued for channel %d", channelID(), nextChannelID);
598 // mToggle toggles each time a track is started on a given channel.
669 ALOGV("stolen channel has no event");
681 ALOGV("Starting stolen channel %d -> %d", channelID(), nextChannelID);
687 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1));
689 channel->process(event, info, (unsigned long)user & 1);
704 ALOGV("process wrong toggle %p channel %d", this, mChannelID);
752 ALOGV("process %p channel %d EVENT_UNDERRUN", this, mChannelID);
755 ALOGV("End loop %p channel %d count %d", this, mChannelID, *(int *)info);