Home | History | Annotate | Download | only in soundpool

Lines Matching full:channel

101 void SoundPool::addToRestartList(SoundChannel* channel)
105 mRestart.push_back(channel);
110 void SoundPool::addToStopList(SoundChannel* channel)
114 mStop.push_back(channel);
134 SoundChannel* channel;
135 ALOGV("Getting channel from stop list");
137 channel = *iter;
140 if (channel != 0) {
142 channel->stop();
149 SoundChannel* channel;
150 ALOGV("Getting channel from list");
152 channel = *iter;
155 if (channel != 0) {
157 channel->nextEvent();
254 SoundChannel* channel;
271 // allocate a channel
272 channel = allocateChannel_l(priority, sampleID);
274 // no channel allocated - return 0
275 if (!channel) {
276 ALOGV("No channel allocated");
282 ALOGV("play channel %p state = %d", channel, channel->state());
283 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate);
290 SoundChannel* channel = NULL;
292 // check if channel for given sampleID still available
296 channel = *iter;
298 ALOGV("Allocated recycled channel for same sampleID");
304 // allocate any channel
305 if (!channel && !mChannels.empty()) {
308 channel = *iter;
310 ALOGV("Allocated active channel");
315 if (channel) {
316 channel->setPriority(priority);
322 mChannels.insert(iter, channel);
324 return channel;
327 // move a channel from its current position to the front of the list
328 void SoundPool::moveToFront_l(SoundChannel* channel)
331 if (*iter == channel) {
333 mChannels.push_front(channel);
343 SoundChannel* channel = findChannel(channelID);
344 if (channel) {
345 channel->pause();
354 SoundChannel* channel = &mChannelPool[i];
355 channel->autoPause();
363 SoundChannel* channel = findChannel(channelID);
364 if (channel) {
365 channel->resume();
374 SoundChannel* channel = &mChannelPool[i];
375 channel->autoResume();
383 SoundChannel* channel = findChannel(channelID);
384 if (channel) {
385 channel->stop();
387 channel = findNextChannel(channelID);
388 if (channel)
389 channel->clearNextEvent();
396 SoundChannel* channel = findChannel(channelID);
397 if (channel) {
398 channel->setVolume(leftVolume, rightVolume);
406 SoundChannel* channel = findChannel(channelID);
407 if (channel) {
408 channel->setPriority(priority);
416 SoundChannel* channel = findChannel(channelID);
417 if (channel) {
418 channel->setLoop(loop);
426 SoundChannel* channel = findChannel(channelID);
427 if (channel) {
428 channel->setRate(rate);
433 void SoundPool::done_l(SoundChannel* channel)
435 ALOGV("done_l(%d)", channel->channelID());
437 if (channel->nextChannelID() != 0) {
439 addToRestartList(channel);
445 moveToFront_l(channel);
680 ALOGE("Sample channel count (%d) out of range", numChannels);
722 ALOGV("channel %d stolen - event queued for channel %d", channelID(), nextChannelID);
766 // mToggle toggles each time a track is started on a given channel.
840 ALOGV("stolen channel has no event");
852 ALOGV("Starting stolen channel %d -> %d", channelID(), nextChannelID);
858 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1));
860 channel->process(event, info, (unsigned long)user & 1);
875 ALOGV("process wrong toggle %p channel %d", this, mChannelID);
924 ALOGV("process %p channel %d event %s",
929 ALOGV("End loop %p channel %d", this, mChannelID);
931 ALOGV("process %p channel %d NEW_IAUDIOTRACK", this, mChannelID);