[vorbis-dev] ogg123 oss plugin plays garbage

Brian Havard brianh at kheldar.apana.org.au
Sun Jan 28 20:52:30 PST 2001



On Sun, 28 Jan 2001 21:42:13 -0600, Chris Cheney wrote:

>I determined what was the cause of the noise, but I am not sure how to fix
>it properly.
>
>static int _is_big_endian(void)
>{
>        uint_16 pattern = 0xbabe;
>        unsigned char *bytewise = (unsigned char *)&pattern;
>
>/*      if (bytewise[0] = 0xba) return 1; */
>        return 0;
>}
>
>I just commented out that line above and it fixed my problem.  I am running
>on an AMD Duron (x86 platform).

I guess that should read "if (bytewise[0] == 0xba) return 1;"
as in comparison, not assignment.


-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh at kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list