diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2002-11-02 14:39:51 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2002-11-02 14:39:51 +0000 |
commit | cb2e0ae53c91e84adbdb260158ae84245b06d8c6 (patch) | |
tree | 096ffc848243f34e17a91f15ca9282a0e52274c7 | |
parent | 99a1a7f7a334444062f26ab0d8fe5fc9c76a538c (diff) | |
download | xine-lib-cb2e0ae53c91e84adbdb260158ae84245b06d8c6.tar.gz xine-lib-cb2e0ae53c91e84adbdb260158ae84245b06d8c6.tar.bz2 |
Fix "Volume" support in the sun audio driver, the ui now wants to operate
on AO_PROP_MIXER_VOL
CVS patchset: 3147
CVS date: 2002/11/02 14:39:51
-rw-r--r-- | src/audio_out/audio_sun_out.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/audio_out/audio_sun_out.c b/src/audio_out/audio_sun_out.c index 3ff1e92db..ed4448af3 100644 --- a/src/audio_out/audio_sun_out.c +++ b/src/audio_out/audio_sun_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_sun_out.c,v 1.25 2002/10/22 16:46:25 jkeil Exp $ + * $Id: audio_sun_out.c,v 1.26 2002/11/02 14:39:51 jkeil Exp $ */ #ifdef HAVE_CONFIG_H @@ -766,7 +766,6 @@ static int ao_sun_get_property (xine_ao_driver_t *this_gen, int property) { switch(property) { case AO_PROP_MIXER_VOL: - break; case AO_PROP_PCM_VOL: if (ioctl(this->audio_fd, AUDIO_GETINFO, &info) < 0) return 0; @@ -794,7 +793,6 @@ static int ao_sun_set_property (xine_ao_driver_t *this_gen, int property, int va switch(property) { case AO_PROP_MIXER_VOL: - break; case AO_PROP_PCM_VOL: info.play.gain = value * AUDIO_MAX_GAIN / 100; if (ioctl(this->audio_fd, AUDIO_SETINFO, &info) < 0) @@ -953,7 +951,7 @@ static xine_ao_driver_t *ao_sun_open_plugin (audio_driver_class_t *class_gen, co this->ao_driver.get_gap_tolerance = ao_sun_get_gap_tolerance; this->ao_driver.control = ao_sun_ctrl; - return this; + return &this->ao_driver; } /* |