Lines Matching refs:channel

99 void SoundPool::addToRestartList(SoundChannel* channel)  in addToRestartList()  argument
103 mRestart.push_back(channel); in addToRestartList()
108 void SoundPool::addToStopList(SoundChannel* channel) in addToStopList() argument
112 mStop.push_back(channel); in addToStopList()
132 SoundChannel* channel; in run() local
135 channel = *iter; in run()
138 if (channel != 0) { in run()
140 channel->stop(); in run()
147 SoundChannel* channel; in run() local
150 channel = *iter; in run()
153 if (channel != 0) { in run()
155 channel->nextEvent(); in run()
252 SoundChannel* channel; in play() local
270 channel = allocateChannel_l(priority, sampleID); in play()
273 if (!channel) { in play()
280 ALOGV("play channel %p state = %d", channel, channel->state()); in play()
281 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate); in play()
288 SoundChannel* channel = NULL; in allocateChannel_l() local
294 channel = *iter; in allocateChannel_l()
303 if (!channel && !mChannels.empty()) { in allocateChannel_l()
306 channel = *iter; in allocateChannel_l()
313 if (channel) { in allocateChannel_l()
314 channel->setPriority(priority); in allocateChannel_l()
320 mChannels.insert(iter, channel); in allocateChannel_l()
322 return channel; in allocateChannel_l()
326 void SoundPool::moveToFront_l(SoundChannel* channel) in moveToFront_l() argument
329 if (*iter == channel) { in moveToFront_l()
331 mChannels.push_front(channel); in moveToFront_l()
341 SoundChannel* channel = findChannel(channelID); in pause() local
342 if (channel) { in pause()
343 channel->pause(); in pause()
352 SoundChannel* channel = &mChannelPool[i]; in autoPause() local
353 channel->autoPause(); in autoPause()
361 SoundChannel* channel = findChannel(channelID); in resume() local
362 if (channel) { in resume()
363 channel->resume(); in resume()
385 SoundChannel* channel = &mChannelPool[i]; in autoResume() local
386 channel->autoResume(); in autoResume()
394 SoundChannel* channel = findChannel(channelID); in stop() local
395 if (channel) { in stop()
396 channel->stop(); in stop()
398 channel = findNextChannel(channelID); in stop()
399 if (channel) in stop()
400 channel->clearNextEvent(); in stop()
407 SoundChannel* channel = findChannel(channelID); in setVolume() local
408 if (channel) { in setVolume()
409 channel->setVolume(leftVolume, rightVolume); in setVolume()
417 SoundChannel* channel = findChannel(channelID); in setPriority() local
418 if (channel) { in setPriority()
419 channel->setPriority(priority); in setPriority()
427 SoundChannel* channel = findChannel(channelID); in setLoop() local
428 if (channel) { in setLoop()
429 channel->setLoop(loop); in setLoop()
437 SoundChannel* channel = findChannel(channelID); in setRate() local
438 if (channel) { in setRate()
439 channel->setRate(rate); in setRate()
444 void SoundPool::done_l(SoundChannel* channel) in done_l() argument
446 ALOGV("done_l(%d)", channel->channelID()); in done_l()
448 if (channel->nextChannelID() != 0) { in done_l()
450 addToRestartList(channel); in done_l()
456 moveToFront_l(channel); in done_l()
885 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1)); in callback() local
887 channel->process(event, info, (unsigned long)user & 1); in callback()