changeset 12702:b6d1267f189e

1000l in GET_VOLUME. Fix by Lu Ran, hephooey (at) fastmail (dot) fm.
author reimar
date Sun, 27 Jun 2004 13:18:06 +0000
parents 4e0acc8d3622
children aff2855972e8
files libao2/ao_jack.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_jack.c	Sun Jun 27 12:38:38 2004 +0000
+++ b/libao2/ao_jack.c	Sun Jun 27 13:18:06 2004 +0000
@@ -57,11 +57,11 @@
 		case AOCONTROL_GET_VOLUME:	
 			{
 				ao_control_vol_t *vol = (ao_control_vol_t *)arg;
-				int *l, *r;
+				int l, r;
 				
-				JACK_GetVolume(driver, l, r);
-				vol->left = (float )*l;
-				vol->right = (float )*r;
+				JACK_GetVolume(driver, &l, &r);
+				vol->left = (float )l;
+				vol->right = (float )r;
 				
 				return CONTROL_OK;
 			}