(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
This commit is contained in:
jp9000 2014-08-02 08:32:53 -07:00
parent 4d1272e6e2
commit 45eec06891
4 changed files with 7 additions and 7 deletions

View file

@ -319,7 +319,7 @@ struct obs_source {
audio_resampler_t resampler;
audio_line_t audio_line;
pthread_mutex_t audio_mutex;
struct filtered_audio audio_data;
struct obs_audio_data audio_data;
size_t audio_storage_size;
float user_volume;
float present_volume;

View file

@ -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,
struct filtered_audio *in)
static inline struct obs_audio_data *filter_async_audio(obs_source_t source,
struct obs_audio_data *in)
{
size_t i;
for (i = source->filters.num; i > 0; i--) {
@ -1463,7 +1463,7 @@ void obs_source_output_audio(obs_source_t source,
const struct source_audio *audio)
{
uint32_t flags;
struct filtered_audio *output;
struct obs_audio_data *output;
if (!source || !audio)
return;

View file

@ -248,8 +248,8 @@ struct obs_source_info {
* the data passed and return it, or you can defer audio
* data for later if time is needed for processing.
*/
struct filtered_audio *(*filter_audio)(void *data,
struct filtered_audio *audio);
struct obs_audio_data *(*filter_audio)(void *data,
struct obs_audio_data *audio);
/**
* Called to enumerate all sources being used within this source.

View file

@ -152,7 +152,7 @@ struct obs_video_info {
* Sent to source filters via the filter_audio callback to allow filtering of
* audio data
*/
struct filtered_audio {
struct obs_audio_data {
uint8_t *data[MAX_AV_PLANES];
uint32_t frames;
uint64_t timestamp;