Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libossaudio ossaudio(3): Add some endian-specific U16 fo...



details:   https://anonhg.NetBSD.org/src/rev/a8fcafca78b5
branches:  trunk
changeset: 945076:a8fcafca78b5
user:      nia <nia%NetBSD.org@localhost>
date:      Tue Oct 20 06:33:52 2020 +0000

description:
ossaudio(3): Add some endian-specific U16 formats

for compatibility with FreeBSD

diffstat:

 lib/libossaudio/soundcard.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r c772c50b9bcd -r a8fcafca78b5 lib/libossaudio/soundcard.h
--- a/lib/libossaudio/soundcard.h       Mon Oct 19 23:43:55 2020 +0000
+++ b/lib/libossaudio/soundcard.h       Tue Oct 20 06:33:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: soundcard.h,v 1.28 2020/10/19 10:28:47 nia Exp $       */
+/*     $NetBSD: soundcard.h,v 1.29 2020/10/20 06:33:52 nia Exp $       */
 
 /*-
  * Copyright (c) 1997, 2020 The NetBSD Foundation, Inc.
@@ -111,6 +111,8 @@
 /* Need native 16 bit format which depends on byte order */
 #include <machine/endian_machdep.h>
 #if _BYTE_ORDER == _LITTLE_ENDIAN
+#define  AFMT_U16_NE AFMT_U16_LE
+#define  AFMT_U16_OE AFMT_U16_BE
 #define  AFMT_S16_NE AFMT_S16_LE
 #define  AFMT_S16_OE AFMT_S16_BE
 #define  AFMT_S24_NE AFMT_S24_LE
@@ -118,6 +120,8 @@
 #define  AFMT_S32_NE AFMT_S32_LE
 #define  AFMT_S32_OE AFMT_S32_BE
 #else
+#define  AFMT_U16_NE AFMT_U16_BE
+#define  AFMT_U16_OE AFMT_U16_LE
 #define  AFMT_S16_NE AFMT_S16_BE
 #define  AFMT_S16_OE AFMT_S16_LE
 #define  AFMT_S24_NE AFMT_S24_BE



Home | Main Index | Thread Index | Old Index