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) several times without success. Chris --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Sat, 27 Jan 2001, Chris Cheney wrote:> 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) several times without success.If you hear static, then it sounds like a byte-ordering problem in the interface between libao and ogg123. What platform (hardward) are you running on? Maybe ogg123 didn't detect the proper byte ordering correctly. --- Stan Seibert --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
I determined what was the cause of the noise, but I am not sure how to fix
it properly.
tatic 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).
Thanks,
Chris Cheney
> 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) several times without success.
>
> Chris
>
> --- >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@xiph.org'
> containing only the word 'unsubscribe' in the body. No subject is
needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
--- >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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.
On Sat, Jan 27, 2001 at 09:45:49PM -0600, Chris Cheney wrote:> I tried to use the current cvs version of ogg123 with oss output and the > ogg just sounds like static.Ok, I can confirm that on an i386 architecture. The problem lies in libao. Someone did a great job pasting the _is_big_endian() function from ao/src/plugins/alsa/ao_alsa.c to oss/ao_oss.c. But accidentially one '=' caracter is missing in the line 63: if (bytewise[0] = 0xba) return 1; Ingo -- 16 Hard coded constant for amount of room allowed for cache align and faster forwarding (tunable) -- seen in /usr/src/linux-2.2.14/net/TUNABLE --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
It should be '==' instead of '='. The current code results in an assignment instead of a comparison. -tim On Sunday, January 28, 2001, at 07:42 PM, 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). > > Thanks, >--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.