mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
ao_audiotrack: do not needlessly resample
Resampling when the driver says it isn't outputting more than a certain rate anyway makes sense, the inverse does not.
This commit is contained in:
@@ -684,8 +684,8 @@ static int init(struct ao *ao)
|
||||
AudioManager.STREAM_MUSIC
|
||||
);
|
||||
if (MP_JNI_EXCEPTION_LOG(ao) == 0) {
|
||||
ao->samplerate = samplerate;
|
||||
MP_VERBOSE(ao, "AudioTrack.nativeOutputSampleRate = %d\n", samplerate);
|
||||
ao->samplerate = MPMIN(samplerate, ao->samplerate);
|
||||
}
|
||||
}
|
||||
p->samplerate = ao->samplerate;
|
||||
|
||||
Reference in New Issue
Block a user