changeset 6194:156144ee6810

removed unused controls
author alex
date Sun, 26 May 2002 12:30:54 +0000
parents 2fd9ec444098
children 39805251ef61
files libao2/ao_alsa1x.c libao2/ao_alsa9.c
diffstat 2 files changed, 0 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa1x.c	Sun May 26 12:23:19 2002 +0000
+++ b/libao2/ao_alsa1x.c	Sun May 26 12:30:54 2002 +0000
@@ -175,23 +175,6 @@
 /* to set/get/query special features/parameters */
 static int control(int cmd, int arg)
 {
-    switch(cmd)
-    {
-	case AOCONTROL_GET_DEVICE:
-	    return((char *)alsa_device); /* egy kicsit brutalis, dehat :) */
-	case AOCONTROL_SET_DEVICE:
-	{
-	    int ret;
-
-	    strncpy(alsa_device, (char *)arg, ALSA_DEVICE_SIZE);
-	    uninit();
-	    ret = init(ao_data.samplerate, ao_data.channels, ao_data.format, 0);
-	    if (ret == 0)
-		return(CONTROL_ERROR);
-	    else
-		return(CONTROL_OK);
-	}
-    }
     return(CONTROL_UNKNOWN);
 }
 
--- a/libao2/ao_alsa9.c	Sun May 26 12:23:19 2002 +0000
+++ b/libao2/ao_alsa9.c	Sun May 26 12:30:54 2002 +0000
@@ -175,23 +175,6 @@
 /* to set/get/query special features/parameters */
 static int control(int cmd, int arg)
 {
-    switch(cmd)
-    {
-	case AOCONTROL_GET_DEVICE:
-	    return((char *)alsa_device); /* egy kicsit brutalis, dehat :) */
-	case AOCONTROL_SET_DEVICE:
-	{
-	    int ret;
-
-	    strncpy(alsa_device, (char *)arg, ALSA_DEVICE_SIZE);
-	    uninit();
-	    ret = init(ao_data.samplerate, ao_data.channels, ao_data.format, 0);
-	    if (ret == 0)
-		return(CONTROL_ERROR);
-	    else
-		return(CONTROL_OK);
-	}
-    }
     return(CONTROL_UNKNOWN);
 }