$NetBSD: patch-ad,v 1.1.1.1 2002/09/24 09:35:17 chris Exp $ --- ogg123/ogg123.c.orig Sat Jul 6 20:12:18 2002 +++ ogg123/ogg123.c Sat Sep 14 19:05:37 2002 @@ -453,6 +453,16 @@ return; } + if ((new_audio_fmt.big_endian != (BYTE_ORDER == BIG_ENDIAN)) || + new_audio_fmt.signed_sample != 1 || + new_audio_fmt.word_size != 2) + { + /* Tremor can only do big_endian, signed, 16 bit samples */ + status_error(_("Error, Tremor can only decode signed 16 bit PCM " + "host endian.\n")); + return; + } + /* Decide which statistics are valid */ select_stats(stat_format, &options, source, decoder, audio_buffer);