summaryrefslogtreecommitdiffstats
path: root/libao2/ao_sun.c
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-19 20:04:54 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-19 20:04:54 +0000
commit42805cb4512f1edd857564092ca812d9c5065b95 (patch)
tree6be1dd9525bb04baabf7b9039c911a3ef66e0e7a /libao2/ao_sun.c
parentca79276b201d00b6533f863e6f7161f7e61e15ad (diff)
downloadmpv-42805cb4512f1edd857564092ca812d9c5065b95.tar.bz2
mpv-42805cb4512f1edd857564092ca812d9c5065b95.tar.xz
AUDIO_ENCODING_LINEAR8 format is not available on sunos 5.5. Format is
unsupported in mplayer for now, to get the code compiled on that old version of the OS. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1347 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_sun.c')
-rw-r--r--libao2/ao_sun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libao2/ao_sun.c b/libao2/ao_sun.c
index b723fd9ea4..071b750b58 100644
--- a/libao2/ao_sun.c
+++ b/libao2/ao_sun.c
@@ -75,8 +75,10 @@ static int oss2sunfmt(int oss_format)
case AFMT_S16_BE:
case AFMT_S16_LE:
return AUDIO_ENCODING_LINEAR;
+#ifdef AUDIO_ENCODING_LINEAR8 // Missing on SunOS 5.5.1...
case AFMT_U8:
return AUDIO_ENCODING_LINEAR8;
+#endif
#ifdef AUDIO_ENCODING_DVI // Missing on NetBSD...
case AFMT_IMA_ADPCM:
return AUDIO_ENCODING_DVI;