From 3d779cc533acf7b06e918c7f9f9b36c4c337fc6a Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Wed, 18 Apr 2012 09:16:04 -0700 Subject: Adjust output to 2 buffers of 880 frames each Change-Id: I180a4b65a655bcc4ede9f7036d1c9b6daf4c8dbd --- libaudio/AudioHardware.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libaudio') 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)) -- cgit v1.1