Conversion of ogg123 to use the tremor library. This makes my arm boxen
[pkgsrc.git] / audio / tremor-tools / patches / patch-ad
1 $NetBSD$
2
3 --- ogg123/ogg123.c.orig        Sat Jul  6 20:12:18 2002
4 +++ ogg123/ogg123.c     Sat Sep 14 19:05:37 2002
5 @@ -453,6 +453,16 @@
6      return;
7    }
8  
9 +  if ((new_audio_fmt.big_endian != (BYTE_ORDER == BIG_ENDIAN)) ||
10 +        new_audio_fmt.signed_sample != 1 ||
11 +        new_audio_fmt.word_size != 2)
12 +  {
13 +    /* Tremor can only do big_endian, signed, 16 bit samples */
14 +    status_error(_("Error, Tremor can only decode signed 16 bit PCM "
15 +                   "host endian.\n"));
16 +    return;
17 +  }
18 +
19    /* Decide which statistics are valid */
20    select_stats(stat_format, &options, source, decoder, audio_buffer);
21