Mercurial > mplayer.hg
changeset 1061:0f7be115a4db
patch by J¸«ärgen Keil
author | arpi_esp |
---|---|
date | Fri, 08 Jun 2001 23:36:58 +0000 |
parents | a8918dfbc180 |
children | 936b28a365e6 |
files | DOCS/SOLARIS mixer.c vcd_read.h |
diffstat | 3 files changed, 41 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/DOCS/SOLARIS Fri Jun 08 23:36:13 2001 +0000 +++ b/DOCS/SOLARIS Fri Jun 08 23:36:58 2001 +0000 @@ -1,13 +1,16 @@ Notes for Solaris users ======================= -1. To build the package you will need GNU make (gmake, /opt/sfw/gmake), -native Solaris make will not work. +1. It *only* works on Solaris x86. It can't work on SPARC systems due to + the use of win32 codecs. -2. For DVD support you must have the patched libcss installed. Patch: +2. To build the package you will need GNU make (gmake, /opt/sfw/gmake), + native Solaris make will not work. + +3. For DVD support you must have the patched libcss installed. Patch: http://www.tools.de/solaris/mplayer/ -3. Due to two bugs in solaris 8 x86, you cannot reliably play DVDs using a +4. Due to two bugs in solaris 8 x86, you cannot reliably play DVDs using a capacity >4GB: - The sd(7D) driver on solaris 8 x86 driver has bug when accessing a
--- a/mixer.c Fri Jun 08 23:36:13 2001 +0000 +++ b/mixer.c Fri Jun 08 23:36:58 2001 +0000 @@ -6,19 +6,18 @@ #include <unistd.h> #include "config.h" - -#ifdef USE_OSS_AUDIO -#include <sys/soundcard.h> -#endif - -#ifdef USE_SUN_AUDIO -#include <sys/audioio.h> -#endif - #include "mixer.h" + #if defined(USE_OSS_AUDIO) +/* + * Mixer interface using OSS style soundcard commands. + */ + +#include <sys/soundcard.h> + + char * mixer_device=DEV_MIXER; int mixer_usemaster=0; @@ -66,8 +65,16 @@ close( fd ); } } + #elif defined(USE_SUN_AUDIO) +/* + * Mixer interface using Sun style soundcard commands. + */ + +#include <sys/audioio.h> + + char * mixer_device="/dev/audioctl"; int mixer_usemaster=0; @@ -101,6 +108,23 @@ close( fd ); } } + +#else + +/* + * No usable Mixer interface selected. + * Just some stub routines. + */ + +char * mixer_device=NULL; +int mixer_usemaster=0; + +void mixer_getvolume( float *l,float *r ){ + *l = *r = 50.0; +} +void mixer_setvolume( float l,float r ){ +} + #endif