Skip to content

Commit

Permalink
revert resampled for 48000Hz, playback goes faster without it.
Browse files Browse the repository at this point in the history
If you play 44100Hz source with 48000Hz output freq, without resampled,
speed will be inaccurate.
  • Loading branch information
tsynik committed Jun 20, 2012
1 parent 9f16964 commit 8144d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libaudio/audio_hw.c
Expand Up @@ -1578,8 +1578,8 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
}

/* only use resampler if required (avoid 48000Hz resampling for external DAC) */
if (out->config.rate != DEFAULT_OUT_SAMPLING_RATE && out->config.rate != 48000) {
LOGD("### out->resampler");
if (out->config.rate != DEFAULT_OUT_SAMPLING_RATE/* && out->config.rate != 48000*/) {
// LOGD("### out->resampler");
out->resampler->resample_from_input(out->resampler,
(int16_t *)buffer,
&in_frames,
Expand Down

0 comments on commit 8144d56

Please sign in to comment.