Set sample rate when resuming playback. This fixes AC3/DTS passthrough
on S/PDIF with snd_hda(4). Submitted by: mav
This commit is contained in:
parent
f148355ab2
commit
962697d427
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226263
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= mplayer
|
||||
PORTVERSION= ${MPLAYER_PORT_VERSION}
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
|
||||
COMMENT= High performance media player supporting many formats
|
||||
|
||||
|
18
multimedia/mplayer/files/patch-libao2-ao_oss.c
Normal file
18
multimedia/mplayer/files/patch-libao2-ao_oss.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- libao2/ao_oss.c.orig
|
||||
+++ libao2/ao_oss.c
|
||||
@@ -433,6 +433,7 @@
|
||||
fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
|
||||
#endif
|
||||
|
||||
+ ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
|
||||
oss_format = format2oss(ao_data.format);
|
||||
ioctl (audio_fd, SNDCTL_DSP_SETFMT, &oss_format);
|
||||
if(ao_data.format != AF_FORMAT_AC3) {
|
||||
@@ -442,7 +443,6 @@
|
||||
int c = ao_data.channels-1;
|
||||
ioctl (audio_fd, SNDCTL_DSP_STEREO, &c);
|
||||
}
|
||||
- ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user