Lines Matching defs:channel

93 void SoundPool::addToRestartList(SoundChannel* channel)
97 mRestart.push_back(channel);
102 void SoundPool::addToStopList(SoundChannel* channel)
106 mStop.push_back(channel);
126 SoundChannel* channel;
127 ALOGV("Getting channel from stop list");
129 channel = *iter;
132 if (channel != 0) {
134 channel->stop();
141 SoundChannel* channel;
142 ALOGV("Getting channel from list");
144 channel = *iter;
147 if (channel != 0) {
149 channel->nextEvent();
243 SoundChannel* channel;
260 // allocate a channel
261 channel = allocateChannel_l(priority);
263 // no channel allocated - return 0
264 if (!channel) {
265 ALOGV("No channel allocated");
271 ALOGV("play channel %p state = %d", channel, channel->state());
272 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate);
279 SoundChannel* channel = NULL;
281 // allocate a channel
285 channel = *iter;
287 ALOGV("Allocated active channel");
292 if (channel) {
293 channel->setPriority(priority);
299 mChannels.insert(iter, channel);
301 return channel;
304 // move a channel from its current position to the front of the list
305 void SoundPool::moveToFront_l(SoundChannel* channel)
308 if (*iter == channel) {
310 mChannels.push_front(channel);
320 SoundChannel* channel = findChannel(channelID);
321 if (channel) {
322 channel->pause();
331 SoundChannel* channel = &mChannelPool[i];
332 channel->autoPause();
340 SoundChannel* channel = findChannel(channelID);
341 if (channel) {
342 channel->resume();
351 SoundChannel* channel = &mChannelPool[i];
352 channel->autoResume();
360 SoundChannel* channel = findChannel(channelID);
361 if (channel) {
362 channel->stop();
364 channel = findNextChannel(channelID);
365 if (channel)
366 channel->clearNextEvent();
373 SoundChannel* channel = findChannel(channelID);
374 if (channel) {
375 channel->setVolume(leftVolume, rightVolume);
383 SoundChannel* channel = findChannel(channelID);
384 if (channel) {
385 channel->setPriority(priority);
393 SoundChannel* channel = findChannel(channelID);
394 if (channel) {
395 channel->setLoop(loop);
403 SoundChannel* channel = findChannel(channelID);
404 if (channel) {
405 channel->setRate(rate);
410 void SoundPool::done_l(SoundChannel* channel)
412 ALOGV("done_l(%d)", channel->channelID());
414 if (channel->nextChannelID() != 0) {
416 addToRestartList(channel);
422 moveToFront_l(channel);
521 ALOGE("Sample channel count (%d) out of range", numChannels);
562 ALOGV("channel %d stolen - event queued for channel %d", channelID(), nextChannelID);
596 // mToggle toggles each time a track is started on a given channel.
665 ALOGV("stolen channel has no event");
677 ALOGV("Starting stolen channel %d -> %d", channelID(), nextChannelID);
683 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1));
685 channel->process(event, info, (unsigned long)user & 1);
700 ALOGV("process wrong toggle %p channel %d", this, mChannelID);
749 ALOGV("process %p channel %d event %s",
754 ALOGV("End loop %p channel %d", this, mChannelID);