audio_stream結構參考
audio_stream結構參考
#include < audio.h >
資料欄位 | |
uint32_t(* | get_sample_rate )(const struct audio_stream *stream) |
整數(* | set_sample_rate )(struct audio_stream *stream, uint32_t 速率) |
尺寸_t(* | get_buffer_size )(const struct audio_stream *stream) |
音訊通道遮罩_t(* | get_channels )(const struct audio_stream *stream) |
音訊格式_t(* | get_format )(const struct audio_stream *stream) |
整數(* | set_format )(struct audio_stream *stream,audio_format_t 格式) |
整數(* | 待機)(結構audio_stream *stream) |
整數(* | 轉儲)(常量結構audio_stream *流,int fd) |
音頻設備_t(* | get_device )(const struct audio_stream *stream) |
整數(* | set_device )(結構audio_stream *stream,audio_devices_t裝置) |
整數(* | set_parameters )(struct audio_stream *stream, const char *kv_pairs) |
字元 *(* | get_parameters )(const struct audio_stream *stream, const char *keys) |
整數(* | add_audio_effect )(const struct audio_stream *stream, effect_handle_t效果) |
整數(* | 刪除_音訊_效果)(常數結構audio_stream *串流, effect_handle_t效果) |
詳細說明
現場文檔
int(* add_audio_effect)(const struct audio_stream *stream, effect_handle_t效果) |
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效果) |
int(* set_device)(結構audio_stream *stream,audio_devices_t裝置) |
目前未使用 - set_device()對應於set_parameters() ,其中鍵 AUDIO_PARAMETER_STREAM_ROUTING 用於輸入和輸出。 AUDIO_PARAMETER_STREAM_INPUT_SOURCE 是僅由輸入流使用的附加資訊。
int(* set_format)(結構audio_stream *stream,audio_format_t格式) |
int(* set_parameters)(struct audio_stream *stream, const char *kv_pairs) |
int(* set_sample_rate)(struct audio_stream *stream, uint32_t 速率) |
int(* 待機)(struct audio_stream *stream) |
該結構的文檔是從以下文件產生的:
- 硬體/libhardware/include/hardware/audio.h