diff options
| author | Eric Laurent <elaurent@google.com> | 2009-11-05 00:01:33 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-11-05 00:01:33 -0800 |
| commit | fcae6c71794696a074cabf20beeb02fd87853e30 (patch) | |
| tree | 681e88f22ffa0855ac5a75a049beb223d6a4d96f /include | |
| parent | dc0f9efd356e5f212c54f87c7a7ddde5d28046d3 (diff) | |
| parent | 67b692920c18f99b096dce285adc6f7439fa866c (diff) | |
| download | frameworks_base-fcae6c71794696a074cabf20beeb02fd87853e30.zip frameworks_base-fcae6c71794696a074cabf20beeb02fd87853e30.tar.gz frameworks_base-fcae6c71794696a074cabf20beeb02fd87853e30.tar.bz2 | |
am 67b69292: Merge change I93f500a5 into eclair
Merge commit '67b692920c18f99b096dce285adc6f7439fa866c' into eclair-mr2
* commit '67b692920c18f99b096dce285adc6f7439fa866c':
Fix issue 2203561: Sholes: audio playing out of earpiece.
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/AudioRecord.h | 6 | ||||
| -rw-r--r-- | include/media/AudioTrack.h | 8 | ||||
| -rw-r--r-- | include/media/ToneGenerator.h | 3 |
3 files changed, 16 insertions, 1 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 503cb31..008468c 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -314,6 +314,11 @@ private: }; bool processAudioBuffer(const sp<ClientRecordThread>& thread); + status_t openRecord(uint32_t sampleRate, + int format, + int channelCount, + int frameCount, + uint32_t flags); sp<IAudioRecord> mAudioRecord; sp<IMemory> mCblkMemory; @@ -341,6 +346,7 @@ private: uint32_t mNewPosition; uint32_t mUpdatePeriod; audio_io_handle_t mInput; + uint32_t mFlags; }; }; // namespace android diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index 981c2f6..14b30ae 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -391,6 +391,14 @@ private: }; bool processAudioBuffer(const sp<AudioTrackThread>& thread); + status_t createTrack(int streamType, + uint32_t sampleRate, + int format, + int channelCount, + int frameCount, + uint32_t flags, + const sp<IMemory>& sharedBuffer, + audio_io_handle_t output); sp<IAudioTrack> mAudioTrack; sp<IMemory> mCblkMemory; diff --git a/include/media/ToneGenerator.h b/include/media/ToneGenerator.h index c884c2c..1ad1f26 100644 --- a/include/media/ToneGenerator.h +++ b/include/media/ToneGenerator.h @@ -151,7 +151,7 @@ public: NUM_SUP_TONES = LAST_SUP_TONE-FIRST_SUP_TONE+1 }; - ToneGenerator(int streamType, float volume); + ToneGenerator(int streamType, float volume, bool threadCanCallJava = false); ~ToneGenerator(); bool startTone(int toneType, int durationMs = -1); @@ -242,6 +242,7 @@ private: static const ToneDescriptor sToneDescriptors[]; + bool mThreadCanCallJava; unsigned int mTotalSmp; // Total number of audio samples played (gives current time) unsigned int mNextSegSmp; // Position of next segment transition expressed in samples // NOTE: because mTotalSmp, mNextSegSmp are stored on 32 bit, current design will operate properly |
