diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2012-11-01 12:00:00 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2012-11-02 19:19:28 +0100 |
commit | 0374ddb79d4e20aa73ef91496beb2c0811c34ca7 (patch) | |
tree | c9066550112a2b905c2e87351c10bd484ebe04ba /libaf/af_hrtf.c | |
parent | e0aef8cf1275cc988007fcb2a099cdd9f92fa374 (diff) | |
download | mpv-0374ddb79d4e20aa73ef91496beb2c0811c34ca7.tar.bz2 mpv-0374ddb79d4e20aa73ef91496beb2c0811c34ca7.tar.xz |
audio: untypedef af_data and rename it to mp_audio
this is to have something specular to mp_image
Diffstat (limited to 'libaf/af_hrtf.c')
-rw-r--r-- | libaf/af_hrtf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libaf/af_hrtf.c b/libaf/af_hrtf.c index 4edf224de9..1aab8adcf6 100644 --- a/libaf/af_hrtf.c +++ b/libaf/af_hrtf.c @@ -290,7 +290,7 @@ static int control(struct af_instance_s *af, int cmd, void* arg) switch(cmd) { case AF_CONTROL_REINIT: - af->data->rate = ((af_data_t*)arg)->rate; + af->data->rate = ((struct mp_audio*)arg)->rate; if(af->data->rate != 48000) { // automatic samplerate adjustment in the filter chain // is not yet supported. @@ -299,7 +299,7 @@ static int control(struct af_instance_s *af, int cmd, void* arg) af->data->rate); return AF_ERROR; } - af->data->nch = ((af_data_t*)arg)->nch; + af->data->nch = ((struct mp_audio*)arg)->nch; if(af->data->nch == 2) { /* 2 channel input */ if(s->decode_mode != HRTF_MIX_MATRIX2CH) { @@ -311,7 +311,7 @@ static int control(struct af_instance_s *af, int cmd, void* arg) af->data->nch = 5; af->data->format = AF_FORMAT_S16_NE; af->data->bps = 2; - test_output_res = af_test_output(af, (af_data_t*)arg); + test_output_res = af_test_output(af, (struct mp_audio*)arg); af->mul = 2.0 / af->data->nch; // after testing input set the real output format af->data->nch = 2; @@ -381,7 +381,7 @@ frequencies). 2. A bass compensation is introduced to ensure that 0-200 Hz are not damped (without any real 3D acoustical image, however). */ -static af_data_t* play(struct af_instance_s *af, af_data_t *data) +static struct mp_audio* play(struct af_instance_s *af, struct mp_audio *data) { af_hrtf_t *s = af->setup; short *in = data->audio; // Input audio data @@ -603,7 +603,7 @@ static int af_open(af_instance_t* af) af->uninit = uninit; af->play = play; af->mul = 1; - af->data = calloc(1, sizeof(af_data_t)); + af->data = calloc(1, sizeof(struct mp_audio)); af->setup = calloc(1, sizeof(af_hrtf_t)); if((af->data == NULL) || (af->setup == NULL)) return AF_ERROR; |