diff options
author | Glenn Kasten <gkasten@google.com> | 2012-04-18 09:16:04 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-05-10 12:31:03 -0700 |
commit | 3d779cc533acf7b06e918c7f9f9b36c4c337fc6a (patch) | |
tree | a88663fa0112d899963eb879ce3b56df1d778d1c /libaudio | |
parent | 2db43af5526ac9add3951ead6845ac10dc188df0 (diff) | |
download | device_samsung_crespo-3d779cc533acf7b06e918c7f9f9b36c4c337fc6a.zip device_samsung_crespo-3d779cc533acf7b06e918c7f9f9b36c4c337fc6a.tar.gz device_samsung_crespo-3d779cc533acf7b06e918c7f9f9b36c4c337fc6a.tar.bz2 |
Adjust output to 2 buffers of 880 frames each
Change-Id: I180a4b65a655bcc4ede9f7036d1c9b6daf4c8dbd
Diffstat (limited to 'libaudio')
-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)) |