diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-07-03 15:29:10 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-07-03 15:29:10 +0000 |
commit | 715b191398d62ee833f73e64a48d97a16a6908f0 (patch) | |
tree | 2809fc426add157116855be6dc03dddb243a5887 /audio | |
parent | 26390dc1ff8888e5a7b3851faa1b153b0fb9a0ff (diff) |
Notes
Diffstat (limited to 'audio')
-rw-r--r-- | audio/alsaplayer/files/patch-output_oss_oss.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/alsaplayer/files/patch-output_oss_oss.c b/audio/alsaplayer/files/patch-output_oss_oss.c new file mode 100644 index 000000000000..f7307d280054 --- /dev/null +++ b/audio/alsaplayer/files/patch-output_oss_oss.c @@ -0,0 +1,18 @@ +--- output/oss/oss.c.orig Wed Jul 2 17:10:24 2003 ++++ output/oss/oss.c Wed Jul 2 17:13:47 2003 +@@ -84,7 +84,15 @@ + + val = (count << 16) + hops; + ioctl(oss_fd,SNDCTL_DSP_SETFRAGMENT,&val); ++#ifndef AFMT_S16_NE ++#if BYTE_ORDER == LITTLE_ENDIAN ++ val = AFMT_S16_LE; ++#else ++ val = AFMT_S16_BE; ++#endif ++#else + val = AFMT_S16_NE; ++#endif + ioctl(oss_fd,SNDCTL_DSP_SETFMT,&val); + val = *channels - 1; + ioctl(oss_fd,SNDCTL_DSP_STEREO,&val); |