diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-19 11:24:51 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-07-30 11:39:50 -0700 |
commit | 4d74828fc0f6c13d49a36147a4250bcfa8ad0a47 (patch) | |
tree | b7c8867114e2b5ff7997c6a8adb10f3b223acb1e /include | |
parent | 7b82efe7a376c882f8f938e1c41b8311a8cdda4a (diff) | |
download | frameworks_av-4d74828fc0f6c13d49a36147a4250bcfa8ad0a47.zip frameworks_av-4d74828fc0f6c13d49a36147a4250bcfa8ad0a47.tar.gz frameworks_av-4d74828fc0f6c13d49a36147a4250bcfa8ad0a47.tar.bz2 |
Remove default channel mask in AudioRecord constructor and set()
Change-Id: I22ad4ba8777842bf6705e79c6ad796fdb9a4104c
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioRecord.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 7aa3c24..c65ffe8 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -131,7 +131,7 @@ public: * sampleRate: Data sink sampling rate in Hz. * format: Audio format (e.g AUDIO_FORMAT_PCM_16_BIT for signed * 16 bits per sample). - * channelMask: Channel mask. + * channelMask: Channel mask, such that audio_is_input_channel(channelMask) is true. * frameCount: Minimum size of track PCM buffer in frames. This defines the * application's contribution to the * latency of the track. The actual size selected by the AudioRecord could @@ -148,9 +148,9 @@ public: */ AudioRecord(audio_source_t inputSource, - uint32_t sampleRate = 0, - audio_format_t format = AUDIO_FORMAT_DEFAULT, - audio_channel_mask_t channelMask = AUDIO_CHANNEL_IN_MONO, + uint32_t sampleRate, + audio_format_t format, + audio_channel_mask_t channelMask, int frameCount = 0, callback_t cbf = NULL, void* user = NULL, @@ -178,10 +178,10 @@ public: * * threadCanCallJava: Whether callbacks are made from an attached thread and thus can call JNI. */ - status_t set(audio_source_t inputSource = AUDIO_SOURCE_DEFAULT, - uint32_t sampleRate = 0, - audio_format_t format = AUDIO_FORMAT_DEFAULT, - audio_channel_mask_t channelMask = AUDIO_CHANNEL_IN_MONO, + status_t set(audio_source_t inputSource, + uint32_t sampleRate, + audio_format_t format, + audio_channel_mask_t channelMask, int frameCount = 0, callback_t cbf = NULL, void* user = NULL, |