Lines Matching full:channel
96 void SoundPool::addToRestartList(SoundChannel* channel)
99 mRestart.push_back(channel);
118 SoundChannel* channel;
119 LOGV("Getting channel from list");
121 channel = *iter;
123 if (channel) channel->nextEvent();
214 SoundChannel* channel;
230 // allocate a channel
231 channel = allocateChannel(priority);
233 // no channel allocated - return 0
234 if (!channel) {
235 LOGV("No channel allocated");
242 LOGV("channel state = %d", channel->state());
243 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate);
250 SoundChannel* channel = NULL;
252 // allocate a channel
256 channel = *iter;
258 LOGV("Allocated active channel");
263 if (channel) {
264 channel->setPriority(priority);
270 mChannels.insert(iter, channel);
272 return channel;
275 // move a channel from its current position to the front of the list
276 void SoundPool::moveToFront(SoundChannel* channel)
279 if (*iter == channel) {
281 mChannels.push_front(channel);
291 SoundChannel* channel = findChannel(channelID);
292 if (channel) {
293 channel->pause();
302 SoundChannel* channel = &mChannelPool[i];
303 channel->autoPause();
311 SoundChannel* channel = findChannel(channelID);
312 if (channel) {
313 channel->resume();
322 SoundChannel* channel = &mChannelPool[i];
323 channel->autoResume();
331 SoundChannel* channel = findChannel(channelID);
332 if (channel) {
333 channel->stop();
335 channel = findNextChannel(channelID);
336 if (channel)
337 channel->clearNextEvent();
344 SoundChannel* channel = findChannel(channelID);
345 if (channel) {
346 channel->setVolume(leftVolume, rightVolume);
354 SoundChannel* channel = findChannel(channelID);
355 if (channel) {
356 channel->setPriority(priority);
364 SoundChannel* channel = findChannel(channelID);
365 if (channel) {
366 channel->setLoop(loop);
374 SoundChannel* channel = findChannel(channelID);
375 if (channel) {
376 channel->setRate(rate);
381 void SoundPool::done(SoundChannel* channel)
383 LOGV("done(%d)", channel->channelID());
386 if (channel->nextChannelID() != 0) {
388 addToRestartList(channel);
394 moveToFront(channel);
491 LOGE("Sample channel count (%d) out of range", numChannels);
524 LOGV("channel %d stolen - event queued for channel %d", channelID(), nextChannelID);
559 // mToggle toggles each time a track is started on a given channel.
624 LOGV("stolen channel has no event");
636 LOGV("Starting stolen channel %d -> %d", channelID(), nextChannelID);
643 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1));
645 if (channel->mToggle != toggle) {
649 channel->process(event, info);