mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
e60f4e63a5
A fork of the original MPlayer project, it contains significant further development and supports a number of features not available in other Unix players. WWW: http://www.mplayer2.org/ PR: ports/163438 Submitted by: Grzegorz Blach <magik@roorback.net> Feature safe: yes
19 lines
622 B
C
19 lines
622 B
C
--- libao2/ao_oss.c~ 2012-05-10 23:45:22.000000000 -0500
|
|
+++ libao2/ao_oss.c 2012-05-11 00:03:17.820525648 -0500
|
|
@@ -460,6 +460,7 @@ static void reset(void){
|
|
fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
|
|
#endif
|
|
|
|
+ ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
|
|
oss_format = format2oss(ao_data.format);
|
|
if(AF_FORMAT_IS_AC3(ao_data.format))
|
|
ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
|
|
@@ -471,7 +472,6 @@ static void reset(void){
|
|
int c = ao_data.channels-1;
|
|
ioctl (audio_fd, SNDCTL_DSP_STEREO, &c);
|
|
}
|
|
- ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
|
|
}
|
|
}
|
|
|