summaryrefslogtreecommitdiffstats
path: root/libaudio
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-11-11 08:16:45 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-11 08:16:45 -0800
commitde21127cf8438adbd481978fe874314433a06b30 (patch)
treed0c828c3f836221ddf0b2d3884bfcff843379410 /libaudio
parentcfdf025803c01a937810e53d861e1746486c4b9a (diff)
parenta1fee1161f403d8fba66a7d76d246a1c785a6d3c (diff)
downloaddevice_samsung_crespo-de21127cf8438adbd481978fe874314433a06b30.zip
device_samsung_crespo-de21127cf8438adbd481978fe874314433a06b30.tar.gz
device_samsung_crespo-de21127cf8438adbd481978fe874314433a06b30.tar.bz2
Merge "libaudio: increase audio buffer size" into ics-mr1
Diffstat (limited to 'libaudio')
-rw-r--r--libaudio/AudioHardware.h4
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)