使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
audio_stream 结构参考
#include < audio.h >
size_t(* get_buffer_size)(const struct audio_stream *stream) |
返回此流的输入/输出缓冲区的大小(以字节为单位) - 例如。 4800。它应该是帧大小的倍数。另请参见 get_input_buffer_size。
在文件audio.h的第186行定义。
audio_channel_mask_t(* get_channels)(const struct audio_stream *stream) |
返回通道掩码 - 例如 AUDIO_CHANNEL_OUT_STEREO 或 AUDIO_CHANNEL_IN_STEREO
在文件audio.h的第192行定义。
audio_devices_t(* get_device)(const struct audio_stream *stream) |
audio_format_t(* get_format)(const struct audio_stream *stream) |
返回音频格式 - 例如 AUDIO_FORMAT_PCM_16_BIT
在文件audio.h的第197行定义。
char*(* get_parameters)(const struct audio_stream *stream, const char *keys) |
uint32_t(* get_sample_rate)(const struct audio_stream *stream) |
int(* set_device)(struct audio_stream *stream, audio_devices_t 设备) |
int(* set_format)(struct audio_stream *stream, audio_format_t 格式) |
int(* set_parameters)(struct audio_stream *stream, const char *kv_pairs) |
设置/获取音频流参数。该函数接受以下形式的参数键值对列表:key1=value1;key2=value2;...
一些键是为标准参数保留的(参见 AudioParameter 类)
如果实现在输出处于活动状态时不接受参数更改,但参数在其他情况下可接受,则它必须返回 -ENOSYS。
audio flinger 将流置于待机状态,然后更改参数值。
在文件audio.h的第238行定义。
int(* set_sample_rate)(struct audio_stream *stream, uint32_t rate) |
将音频硬件输入/输出置于待机模式。驱动程序应在下一次 I/O 操作时退出待机模式。成功返回 0,失败返回 <0。
在文件audio.h的第209行定义。
此结构的文档是从以下文件生成的:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-08-30。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]