Lines Matching refs:channel

102 void SoundPool::addToRestartList(SoundChannel* channel)
106 mRestart.push_back(channel);
111 void SoundPool::addToStopList(SoundChannel* channel)
115 mStop.push_back(channel);
135 SoundChannel* channel;
136 ALOGV("Getting channel from stop list");
138 channel = *iter;
141 if (channel != 0) {
143 channel->stop();
150 SoundChannel* channel;
151 ALOGV("Getting channel from list");
153 channel = *iter;
156 if (channel != 0) {
158 channel->nextEvent();
255 SoundChannel* channel;
272 // allocate a channel
273 channel = allocateChannel_l(priority, sampleID);
275 // no channel allocated - return 0
276 if (!channel) {
277 ALOGV("No channel allocated");
283 ALOGV("play channel %p state = %d", channel, channel->state());
284 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate);
291 SoundChannel* channel = NULL;
293 // check if channel for given sampleID still available
297 channel = *iter;
299 ALOGV("Allocated recycled channel for same sampleID");
305 // allocate any channel
306 if (!channel && !mChannels.empty()) {
309 channel = *iter;
311 ALOGV("Allocated active channel");
316 if (channel) {
317 channel->setPriority(priority);
323 mChannels.insert(iter, channel);
325 return channel;
328 // move a channel from its current position to the front of the list
329 void SoundPool::moveToFront_l(SoundChannel* channel)
332 if (*iter == channel) {
334 mChannels.push_front(channel);
344 SoundChannel* channel = findChannel(channelID);
345 if (channel) {
346 channel->pause();
355 SoundChannel* channel = &mChannelPool[i];
356 channel->autoPause();
364 SoundChannel* channel = findChannel(channelID);
365 if (channel) {
366 channel->resume();
388 SoundChannel* channel = &mChannelPool[i];
389 channel->autoResume();
397 SoundChannel* channel = findChannel(channelID);
398 if (channel) {
399 channel->stop();
401 channel = findNextChannel(channelID);
402 if (channel)
403 channel->clearNextEvent();
410 SoundChannel* channel = findChannel(channelID);
411 if (channel) {
412 channel->setVolume(leftVolume, rightVolume);
420 SoundChannel* channel = findChannel(channelID);
421 if (channel) {
422 channel->setPriority(priority);
430 SoundChannel* channel = findChannel(channelID);
431 if (channel) {
432 channel->setLoop(loop);
440 SoundChannel* channel = findChannel(channelID);
441 if (channel) {
442 channel->setRate(rate);
447 void SoundPool::done_l(SoundChannel* channel)
449 ALOGV("done_l(%d)", channel->channelID());
451 if (channel->nextChannelID() != 0) {
453 addToRestartList(channel);
459 moveToFront_l(channel);
694 ALOGE("Sample channel count (%d) out of range", numChannels);
736 ALOGV("channel %d stolen - event queued for channel %d", channelID(), nextChannelID);
780 // mToggle toggles each time a track is started on a given channel.
854 ALOGV("stolen channel has no event");
866 ALOGV("Starting stolen channel %d -> %d", channelID(), nextChannelID);
872 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1));
874 channel->process(event, info, (unsigned long)user & 1);
889 ALOGV("process wrong toggle %p channel %d", this, mChannelID);
938 ALOGV("process %p channel %d event %s",
943 ALOGV("End loop %p channel %d", this, mChannelID);
945 ALOGV("process %p channel %d NEW_IAUDIOTRACK", this, mChannelID);