search for: uint_16

Displaying 3 results from an estimated 3 matches for "uint_16".

Did you mean: uint16
2001 Jan 27
4
ogg123 oss plugin plays garbage
I tried to use the current cvs version of ogg123 with oss output and the ogg just sounds like static. I wanted to document it on the list in case anyone else is having the problem. I can make ogg123 write wav files fine. Also Vakor does not have any trouble playing oggs with ogg123, so I am not certain what the problem is. I have tried compiling all of ogg vorbis (ao,ogg,vorbis,vorbis-tools)
2000 Sep 05
1
[kcarnold@xiph.org: [xiph-cvs] cvs commit: vorbis/vorbis-tools/libao ao_alsa.c ao_oss.c audio_out.c audio_out.h]
...nclude <string.h> +#include <assert.h> #include "audio_out.h" /* --- Function Tables --- */ @@ -267,4 +268,14 @@ free(options); options = rest; } +} + +/* Helper function lifted from lib/vorbisfile.c */ +int ao_is_big_endian() { + uint_16 pattern = 0xbabe; + unsigned char *bytewise = (unsigned char *)&pattern; + if (bytewise[0] == 0xba) return 1; + + assert(bytewise[0] == 0xbe); + return 0; } 1.1.4.1 +2 -0 vorbis/vorbis-tools/libao/audio_out.h Index: audio_out.h ========================================================...
2018 Feb 28
1
How to handle UMULO?
If your target has a cheap count-leading-zeros instruction, you'd be able to determine whether an unsigned multiply will overflow or not, in most cases, without doing the long version of the multiplication. This is because an N-bit number times an M-bit number will produce a result that is either N+M bits wide or N+M-1 bits wide. If an N+M bit result will fit in your result type, you are