提交 45eec068 编写于 作者: J jp9000

(API Change) Rename filtered_audio structure

Reanmed filtered_audio to obs_audio_data, to improve the naming and
prefix with obs_ for the sake with consistency with the rest of the API
上级 4d1272e6
...@@ -319,7 +319,7 @@ struct obs_source { ...@@ -319,7 +319,7 @@ struct obs_source {
audio_resampler_t resampler; audio_resampler_t resampler;
audio_line_t audio_line; audio_line_t audio_line;
pthread_mutex_t audio_mutex; pthread_mutex_t audio_mutex;
struct filtered_audio audio_data; struct obs_audio_data audio_data;
size_t audio_storage_size; size_t audio_storage_size;
float user_volume; float user_volume;
float present_volume; float present_volume;
......
...@@ -1354,8 +1354,8 @@ void obs_source_output_video(obs_source_t source, ...@@ -1354,8 +1354,8 @@ void obs_source_output_video(obs_source_t source,
} }
} }
static inline struct filtered_audio *filter_async_audio(obs_source_t source, static inline struct obs_audio_data *filter_async_audio(obs_source_t source,
struct filtered_audio *in) struct obs_audio_data *in)
{ {
size_t i; size_t i;
for (i = source->filters.num; i > 0; i--) { for (i = source->filters.num; i > 0; i--) {
...@@ -1463,7 +1463,7 @@ void obs_source_output_audio(obs_source_t source, ...@@ -1463,7 +1463,7 @@ void obs_source_output_audio(obs_source_t source,
const struct source_audio *audio) const struct source_audio *audio)
{ {
uint32_t flags; uint32_t flags;
struct filtered_audio *output; struct obs_audio_data *output;
if (!source || !audio) if (!source || !audio)
return; return;
......
...@@ -248,8 +248,8 @@ struct obs_source_info { ...@@ -248,8 +248,8 @@ struct obs_source_info {
* the data passed and return it, or you can defer audio * the data passed and return it, or you can defer audio
* data for later if time is needed for processing. * data for later if time is needed for processing.
*/ */
struct filtered_audio *(*filter_audio)(void *data, struct obs_audio_data *(*filter_audio)(void *data,
struct filtered_audio *audio); struct obs_audio_data *audio);
/** /**
* Called to enumerate all sources being used within this source. * Called to enumerate all sources being used within this source.
......
...@@ -152,7 +152,7 @@ struct obs_video_info { ...@@ -152,7 +152,7 @@ struct obs_video_info {
* Sent to source filters via the filter_audio callback to allow filtering of * Sent to source filters via the filter_audio callback to allow filtering of
* audio data * audio data
*/ */
struct filtered_audio { struct obs_audio_data {
uint8_t *data[MAX_AV_PLANES]; uint8_t *data[MAX_AV_PLANES];
uint32_t frames; uint32_t frames;
uint64_t timestamp; uint64_t timestamp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册