1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/audio/cheesetracker/files/patch-common::drivers::posix::sound_driver_oss.cpp
Daichi GOTO 3a35210be1 update audio/cheesetracker: 0.5.5 -> 0.8.0
PR:		54898
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
2003-07-28 05:56:13 +00:00

18 lines
440 B
C++

--- common/drivers/posix/sound_driver_oss.cpp.orig Mon Jun 23 10:06:42 2003
+++ common/drivers/posix/sound_driver_oss.cpp Fri Jul 11 11:49:31 2003
@@ -40,6 +40,14 @@
#define DEFAULT_AUDIO_DEVICE "/dev/dsp"
+#if !defined(AFMT_S16_NE)
+#if defined(BYTE_ORDER) && (BYTE_ORDER == BIG_ENDIAN)
+#define AFMT_S16_NE AFMT_S16_BE
+#else
+#define AFMT_S16_NE AFMT_S16_LE
+#endif
+#endif
+
bool Sound_Driver_OSS::does_perform_disk_write() {