diff options
author | Eric Laurent <elaurent@google.com> | 2012-03-20 18:36:01 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-04-03 16:53:25 -0700 |
commit | 1a9ed11a472493cac7f6dfcbfac2064526a493ed (patch) | |
tree | 5f4a3c6856f294b3c0371afd87df96277215107b /include/media/AudioSystem.h | |
parent | 290ca3a767a974ce9d041e5bcb0c69153f7851d5 (diff) | |
download | frameworks_av-1a9ed11a472493cac7f6dfcbfac2064526a493ed.zip frameworks_av-1a9ed11a472493cac7f6dfcbfac2064526a493ed.tar.gz frameworks_av-1a9ed11a472493cac7f6dfcbfac2064526a493ed.tar.bz2 |
audio policy: add configuration file
removed outputs to stream mapping cache in audio system: the output for a
given stream type must always be queried from audio policy manager as the cache
is not always updated fast enough by audioflinger callback.
removed AudioFlinger::PlaybackThread::setStreamValid() not used anymore if
stream to output mapping is not cached.
Change-Id: Ieca720c0b292181f81247259c8a44359bc74c66b
Diffstat (limited to 'include/media/AudioSystem.h')
-rw-r--r-- | include/media/AudioSystem.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index e64bc3f..471f462 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -88,6 +88,19 @@ public: static status_t getOutputSamplingRate(int* samplingRate, audio_stream_type_t stream = AUDIO_STREAM_DEFAULT); static status_t getOutputFrameCount(int* frameCount, audio_stream_type_t stream = AUDIO_STREAM_DEFAULT); static status_t getOutputLatency(uint32_t* latency, audio_stream_type_t stream = AUDIO_STREAM_DEFAULT); + static status_t getSamplingRate(audio_io_handle_t output, + audio_stream_type_t streamType, + int* samplingRate); + // returns the number of frames per audio HAL write buffer. Corresponds to + // audio_stream->get_buffer_size()/audio_stream_frame_size() + static status_t getFrameCount(audio_io_handle_t output, + audio_stream_type_t stream, + int* frameCount); + // returns the audio output stream latency in ms. Corresponds to + // audio_stream_out->get_latency() + static status_t getLatency(audio_io_handle_t output, + audio_stream_type_t stream, + uint32_t* latency); // DEPRECATED static status_t getOutputSamplingRate(int* samplingRate, int stream = AUDIO_STREAM_DEFAULT); |