]>
Commit | Line | Data |
---|---|---|
36ed49b2 | 1 | diff -uNr amp-0.7.6.orig/audioIO_Linux.c amp-0.7.6/audioIO_Linux.c |
2 | --- amp-0.7.6.orig/audioIO_Linux.c Sat May 31 19:47:58 1997 | |
3 | +++ amp-0.7.6/audioIO_Linux.c Tue Aug 27 18:45:51 2002 | |
4 | @@ -47,9 +47,10 @@ | |
5 | if ((audio_fd = open ("/dev/dsp", O_WRONLY, 0)) == -1) | |
6 | die("Unable to open the audio device\n"); | |
7 | DB(audio, msg("Audio device opened on %d\n",audio_fd); ) | |
8 | - | |
9 | +#if defined(LINUX) && !defined(__powerpc__) | |
10 | if (ioctl(audio_fd, SNDCTL_DSP_SETFMT,&play_format) < 0) | |
11 | die("Unable to set required audio format\n"); | |
12 | +#endif | |
13 | if ((mixer_fd=open("/dev/mixer",O_RDWR)) == -1) | |
14 | warn("Unable to open mixer device\n"); | |
15 | DB(audio, msg("Mixer device opened on %d\n",mixer_fd) ); |