|
virtual void | closeInputStream (AudioStreamIn *in)=0 |
|
virtual void | closeOutputStream (AudioStreamOut *out)=0 |
|
virtual status_t | dumpState (int fd, const Vector< String16 > &args)=0 |
| This method dumps the state of the audio hardware. More...
|
|
virtual size_t | getInputBufferSize (uint32_t sampleRate, int format, int channelCount)=0 |
|
virtual status_t | getMicMute (bool *state)=0 |
|
virtual String8 | getParameters (const String8 &keys)=0 |
|
virtual status_t | initCheck ()=0 |
| check to see if the audio hardware interface has been initialized. More...
|
|
virtual AudioStreamIn * | openInputStream (uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics)=0 |
| This method creates and opens the audio hardware input stream. More...
|
|
virtual AudioStreamOut * | openOutputStream (uint32_t devices, int *format=0, uint32_t *channels=0, uint32_t *sampleRate=0, status_t *status=0)=0 |
| This method creates and opens the audio hardware output stream. More...
|
|
virtual status_t | setMasterVolume (float volume)=0 |
| set the audio volume for all audio activities other than voice call. More...
|
|
virtual status_t | setMicMute (bool state)=0 |
|
virtual status_t | setMode (int mode)=0 |
| setMode is called when the audio mode changes. More...
|
|
virtual status_t | setParameters (const String8 &keyValuePairs)=0 |
|
virtual status_t | setVoiceVolume (float volume)=0 |
| set the audio volume of a voice call. More...
|
|
virtual | ~AudioHardwareInterface () |
|
AudioHardwareInterface.h defines the interface to the audio hardware abstraction layer.
The interface supports setting and getting parameters, selecting audio routing paths, and defining input and output streams.
AudioFlinger initializes the audio hardware and immediately opens an output stream. You can set Audio routing to output to handset, speaker, Bluetooth, or a headset.
The audio input stream is initialized when AudioFlinger is called to carry out a record operation.
Definition at line 191 of file AudioHardwareInterface.h.