Lines Matching refs:TRACK
93 LOGV("add track (%d)", n);
113 track_t& track(mState.tracks[ name ]);
114 if (track.enabled != 0) {
115 track.enabled = 0;
118 if (track.resampler) {
120 delete track.resampler;
121 track.resampler = 0;
122 track.sampleRate = mSampleRate;
125 track.volumeInc[0] = 0;
126 track.volumeInc[1] = 0;
163 status_t AudioMixer::setActiveTrack(int track)
165 if (uint32_t(track-TRACK0) >= MAX_NUM_TRACKS) {
168 mActiveTrack = track - TRACK0;
175 case TRACK:
180 LOGV("setParameter(TRACK, CHANNEL_COUNT, %d)", value);
190 track_t& track = mState.tracks[ mActiveTrack ];
191 if (track.setResampler(uint32_t(value), mSampleRate)) {
203 track_t& track = mState.tracks[ mActiveTrack ];
204 if (track.volume[name-VOLUME0] != value) {
205 track.prevVolume[name-VOLUME0] = track.volume[name-VOLUME0] << 16;
206 track.volume[name-VOLUME0] = value;
208 track.prevVolume[name-VOLUME0] = value << 16;
209 track.volumeInc[name-VOLUME0] = 0;
211 int32_t d = (value<<16) - track.prevVolume[name-VOLUME0];
213 track.volumeInc[name-VOLUME0] = volInc;
215 track.prevVolume[name-VOLUME0] = value << 16;
375 // track hooks for subsequent mixer process
652 // acquire each track's buffer
663 // t.in == NULL can happen if the track was flushed just after having
709 // release each track's buffer
748 // t.in == NULL can happen if the track was flushed just after having
762 // one track, 16 bits stereo without resampling is the most common case
781 // in == NULL can happen if the track was flushed just after having
785 LOGE_IF(((unsigned long)in & 3), "process stereo track: input buffer alignment pb: buffer %p track %d, channels %d, needs %08x",
793 // we process only one track.