summaryrefslogtreecommitdiffstats
path: root/libaf/af_hrtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af_hrtf.c')
-rw-r--r--libaf/af_hrtf.c10
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;