Loading media/libaudioprocessing/AudioMixer.cpp +6 −0 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,12 @@ bool AudioMixer::setChannelMasks(int name, void AudioMixer::track_t::unprepareForDownmix() { void AudioMixer::track_t::unprepareForDownmix() { ALOGV("AudioMixer::unprepareForDownmix(%p)", this); ALOGV("AudioMixer::unprepareForDownmix(%p)", this); if (mPostDownmixReformatBufferProvider != nullptr) { // release any buffers held by the mPostDownmixReformatBufferProvider // before deallocating the downmixerBufferProvider. mPostDownmixReformatBufferProvider->reset(); } mDownmixRequiresFormat = AUDIO_FORMAT_INVALID; mDownmixRequiresFormat = AUDIO_FORMAT_INVALID; if (downmixerBufferProvider != NULL) { if (downmixerBufferProvider != NULL) { // this track had previously been configured with a downmixer, delete it // this track had previously been configured with a downmixer, delete it Loading Loading
media/libaudioprocessing/AudioMixer.cpp +6 −0 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,12 @@ bool AudioMixer::setChannelMasks(int name, void AudioMixer::track_t::unprepareForDownmix() { void AudioMixer::track_t::unprepareForDownmix() { ALOGV("AudioMixer::unprepareForDownmix(%p)", this); ALOGV("AudioMixer::unprepareForDownmix(%p)", this); if (mPostDownmixReformatBufferProvider != nullptr) { // release any buffers held by the mPostDownmixReformatBufferProvider // before deallocating the downmixerBufferProvider. mPostDownmixReformatBufferProvider->reset(); } mDownmixRequiresFormat = AUDIO_FORMAT_INVALID; mDownmixRequiresFormat = AUDIO_FORMAT_INVALID; if (downmixerBufferProvider != NULL) { if (downmixerBufferProvider != NULL) { // this track had previously been configured with a downmixer, delete it // this track had previously been configured with a downmixer, delete it Loading