diff options
-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)) |