From 482536577690280b608555b1c1d01bd488495ec7 Mon Sep 17 00:00:00 2001 From: jan Date: Tue, 12 Jul 2016 00:11:16 -0700 Subject: [PATCH] fix variable name --- py_aax_decode/native.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py_aax_decode/native.py b/py_aax_decode/native.py index 93b3ce8..ed0196e 100644 --- a/py_aax_decode/native.py +++ b/py_aax_decode/native.py @@ -83,7 +83,7 @@ def get_audio_channel_count(dll, handle): def get_sample_rate(dll, handle): sample_rate = ctypes.c_uint() - res = dll.AAXGetSampleRate(handle, n_channels) + res = dll.AAXGetSampleRate(handle, sample_rate) if res != 0: raise Exception('AAXGetSampleRate: {}'.format(res))