diff options
author | Glenn Kasten <gkasten@google.com> | 2012-05-10 14:07:25 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-10 14:07:25 -0700 |
commit | f0ded8bb59c1b01155e612a5aa624fa819788800 (patch) | |
tree | 4e677b1e79c0e1463cc3f5655318a6782838615c | |
parent | 82ab10594570df8f55f92a6885a9c606cc56e67f (diff) | |
parent | 3d779cc533acf7b06e918c7f9f9b36c4c337fc6a (diff) | |
download | device_samsung_crespo-f0ded8bb59c1b01155e612a5aa624fa819788800.zip device_samsung_crespo-f0ded8bb59c1b01155e612a5aa624fa819788800.tar.gz device_samsung_crespo-f0ded8bb59c1b01155e612a5aa624fa819788800.tar.bz2 |
Merge "Adjust output to 2 buffers of 880 frames each" into jb-dev
-rw-r--r-- | libaudio/AudioHardware.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libaudio/AudioHardware.h b/libaudio/AudioHardware.h index 6ac64e8..eb1148e 100644 --- a/libaudio/AudioHardware.h +++ b/libaudio/AudioHardware.h @@ -47,7 +47,7 @@ namespace android_audio_legacy { using android::Vector; // TODO: determine actual audio DSP and hardware latency -// Additionnal latency introduced by audio DSP and hardware in ms +// Additional latency introduced by audio DSP and hardware in ms #define AUDIO_HW_OUT_LATENCY_MS 0 // Default audio output sample rate #define AUDIO_HW_OUT_SAMPLERATE 44100 @@ -56,8 +56,8 @@ namespace android_audio_legacy { // Default audio output sample format #define AUDIO_HW_OUT_FORMAT (AudioSystem::PCM_16_BIT) // Kernel pcm out buffer size in frames at 44.1kHz -#define AUDIO_HW_OUT_PERIOD_SZ 1024 -#define AUDIO_HW_OUT_PERIOD_CNT 4 +#define AUDIO_HW_OUT_PERIOD_SZ 880 +#define AUDIO_HW_OUT_PERIOD_CNT 2 // Default audio output buffer size in bytes #define AUDIO_HW_OUT_PERIOD_BYTES (AUDIO_HW_OUT_PERIOD_SZ * 2 * sizeof(int16_t)) |