• Home
  • Raw
  • Download

Lines Matching refs:track

258     track_t &track = mState.tracks[name];  in setChannelMasks()  local
260 if (trackChannelMask == track.channelMask in setChannelMasks()
261 && mixerChannelMask == track.mMixerChannelMask) { in setChannelMasks()
267 const bool mixerChannelCountChanged = track.mMixerChannelCount != mixerChannelCount; in setChannelMasks()
272 track.channelMask = trackChannelMask; in setChannelMasks()
273 track.channelCount = trackChannelCount; in setChannelMasks()
274 track.mMixerChannelMask = mixerChannelMask; in setChannelMasks()
275 track.mMixerChannelCount = mixerChannelCount; in setChannelMasks()
279 const audio_format_t prevDownmixerFormat = track.mDownmixRequiresFormat; in setChannelMasks()
283 status, track.channelMask, track.mMixerChannelMask); in setChannelMasks()
285 if (prevDownmixerFormat != track.mDownmixRequiresFormat) { in setChannelMasks()
286 track.prepareForReformat(); // because of downmixer, track format may change! in setChannelMasks()
289 if (track.resampler && mixerChannelCountChanged) { in setChannelMasks()
291 const uint32_t resetToSampleRate = track.sampleRate; in setChannelMasks()
292 delete track.resampler; in setChannelMasks()
293 track.resampler = NULL; in setChannelMasks()
294 track.sampleRate = mSampleRate; // without resampler, track rate is device sample rate. in setChannelMasks()
296 track.setResampler(resetToSampleRate /*trackSampleRate*/, mSampleRate /*devSampleRate*/); in setChannelMasks()
439 track_t& track(mState.tracks[ name ]); in deleteTrackName() local
440 if (track.enabled) { in deleteTrackName()
441 track.enabled = false; in deleteTrackName()
445 delete track.resampler; in deleteTrackName()
446 track.resampler = NULL; in deleteTrackName()
452 delete track.mTimestretchBufferProvider; in deleteTrackName()
453 track.mTimestretchBufferProvider = NULL; in deleteTrackName()
461 track_t& track = mState.tracks[name]; in enable() local
463 if (!track.enabled) { in enable()
464 track.enabled = true; in enable()
474 track_t& track = mState.tracks[name]; in disable() local
476 if (track.enabled) { in disable()
477 track.enabled = false; in disable()
612 track_t& track = mState.tracks[name]; in setParameter() local
624 if (setChannelMasks(name, trackChannelMask, track.mMixerChannelMask)) { in setParameter()
630 if (track.mainBuffer != valueBuf) { in setParameter()
631 track.mainBuffer = valueBuf; in setParameter()
637 if (track.auxBuffer != valueBuf) { in setParameter()
638 track.auxBuffer = valueBuf; in setParameter()
645 if (track.mFormat != format) { in setParameter()
647 track.mFormat = format; in setParameter()
649 track.prepareForReformat(); in setParameter()
659 if (track.mMixerFormat != format) { in setParameter()
660 track.mMixerFormat = format; in setParameter()
667 if (setChannelMasks(name, track.channelMask, mixerChannelMask)) { in setParameter()
681 if (track.setResampler(uint32_t(valueInt), mSampleRate)) { in setParameter()
688 track.resetResampler(); in setParameter()
692 delete track.resampler; in setParameter()
693 track.resampler = NULL; in setParameter()
694 track.sampleRate = mSampleRate; in setParameter()
708 &track.auxLevel, &track.prevAuxLevel, &track.auxInc, in setParameter()
709 &track.mAuxLevel, &track.mPrevAuxLevel, &track.mAuxInc)) { in setParameter()
711 target == VOLUME ? "VOLUME" : "RAMP_VOLUME", track.auxLevel); in setParameter()
719 &track.volume[param - VOLUME0], &track.prevVolume[param - VOLUME0], in setParameter()
720 &track.volumeInc[param - VOLUME0], in setParameter()
721 &track.mVolume[param - VOLUME0], &track.mPrevVolume[param - VOLUME0], in setParameter()
722 &track.mVolumeInc[param - VOLUME0])) { in setParameter()
725 track.volume[param - VOLUME0]); in setParameter()
741 if (track.setPlaybackRate(*playbackRate)) { in setParameter()