diff options
author | Eric Laurent <elaurent@google.com> | 2011-11-11 11:51:05 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-11 11:51:05 -0800 |
commit | 101bbe2592729e6f4909ac8e8e89b2853029efde (patch) | |
tree | c3e7a3e6dfc5892ff6c5d1965078bc4902cf503b /libaudio | |
parent | 05e7dceefaf02eb550e4dc4c800ff411243ef120 (diff) | |
parent | de21127cf8438adbd481978fe874314433a06b30 (diff) | |
download | device_samsung_crespo-101bbe2592729e6f4909ac8e8e89b2853029efde.zip device_samsung_crespo-101bbe2592729e6f4909ac8e8e89b2853029efde.tar.gz device_samsung_crespo-101bbe2592729e6f4909ac8e8e89b2853029efde.tar.bz2 |
am de21127c: Merge "libaudio: increase audio buffer size" into ics-mr1
* commit 'de21127cf8438adbd481978fe874314433a06b30':
libaudio: increase audio buffer size
Diffstat (limited to 'libaudio')
-rw-r--r-- | libaudio/AudioHardware.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libaudio/AudioHardware.h b/libaudio/AudioHardware.h index 1148478..a183a98 100644 --- a/libaudio/AudioHardware.h +++ b/libaudio/AudioHardware.h @@ -57,7 +57,7 @@ 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 448 +#define AUDIO_HW_OUT_PERIOD_SZ 1024 #define AUDIO_HW_OUT_PERIOD_CNT 4 // Default audio output buffer size in bytes #define AUDIO_HW_OUT_PERIOD_BYTES (AUDIO_HW_OUT_PERIOD_SZ * 2 * sizeof(int16_t)) @@ -69,7 +69,7 @@ namespace android_audio_legacy { // Default audio input sample format #define AUDIO_HW_IN_FORMAT (AudioSystem::PCM_16_BIT) // Kernel pcm in buffer size in frames at 44.1kHz (before resampling) -#define AUDIO_HW_IN_PERIOD_SZ 448 +#define AUDIO_HW_IN_PERIOD_SZ 1024 #define AUDIO_HW_IN_PERIOD_CNT 4 // Default audio input buffer size in bytes (8kHz mono) #define AUDIO_HW_IN_PERIOD_BYTES ((AUDIO_HW_IN_PERIOD_SZ*sizeof(int16_t))/8) |