audio_stream Struct Reference
#include <
audio.h
>
Data Fields |
|
uint32_t(* | get_sample_rate )(const struct audio_stream *stream) |
int(* | set_sample_rate )(struct audio_stream *stream, uint32_t rate) |
size_t(* | get_buffer_size )(const struct audio_stream *stream) |
audio_channel_mask_t(* | get_channels )(const struct audio_stream *stream) |
audio_format_t(* | get_format )(const struct audio_stream *stream) |
int(* | set_format )(struct audio_stream *stream, audio_format_t format) |
int(* | standby )(struct audio_stream *stream) |
int(* | dump )(const struct audio_stream *stream, int fd) |
audio_devices_t(* | get_device )(const struct audio_stream *stream) |
int(* | set_device )(struct audio_stream *stream, audio_devices_t device) |
int(* | set_parameters )(struct audio_stream *stream, const char *kv_pairs) |
char *(* | get_parameters )(const struct audio_stream *stream, const char *keys) |
int(* | add_audio_effect )(const struct audio_stream *stream, effect_handle_t effect) |
int(* | remove_audio_effect )(const struct audio_stream *stream, effect_handle_t effect) |
Detailed Description
Field Documentation
int(* add_audio_effect)(const struct audio_stream *stream, effect_handle_t effect) |
int(* dump)(const struct audio_stream *stream, int fd) |
size_t(* get_buffer_size)(const struct audio_stream *stream) |
audio_channel_mask_t(* get_channels)(const struct audio_stream *stream) |
audio_devices_t(* get_device)(const struct audio_stream *stream) |
audio_format_t(* get_format)(const struct audio_stream *stream) |
char*(* get_parameters)(const struct audio_stream *stream, const char *keys) |
uint32_t(* get_sample_rate)(const struct audio_stream *stream) |
int(* remove_audio_effect)(const struct audio_stream *stream, effect_handle_t effect) |
int(* set_device)(struct audio_stream *stream, audio_devices_t device) |
Currently unused - set_device() corresponds to set_parameters() with key AUDIO_PARAMETER_STREAM_ROUTING for both input and output. AUDIO_PARAMETER_STREAM_INPUT_SOURCE is an additional information used by input streams only.
int(* set_format)(struct audio_stream *stream, audio_format_t format) |
int(* set_parameters)(struct audio_stream *stream, const char *kv_pairs) |
set/get audio stream parameters. The function accepts a list of parameter key value pairs in the form: key1=value1;key2=value2;...
Some keys are reserved for standard parameters (See AudioParameter class)
If the implementation does not accept a parameter change while the output is active but the parameter is acceptable otherwise, it must return -ENOSYS.
The audio flinger will put the stream in standby and then change the parameter value.
int(* set_sample_rate)(struct audio_stream *stream, uint32_t rate) |
int(* standby)(struct audio_stream *stream) |
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ audio.h