[SDL] Re: Ugly ogg problems
Gabriel Gambetta
ggambett at artech.com.uy
Mon Sep 22 06:19:01 PDT 2003
> I get the same symptoms when the data is 16-bit mono but SDL thinks
it's
> 16-bit stereo - the data rate is double what it should be, so it
sounds like
> jabbering monkeys. :)
That makes sense. The description is pretty accurate, too ;)
> I presume you're using SDL_sound, since you mention OGG samples. When
you
> create the music stream, be sure to inform SDL_sound that you REQUIRE
the
> stream's data format to match that of your current sound device;
otherwise it
> doesn't know it's supposed to give you anything but the channels and
sample
> rate of your music file.
OK, thanks, I'll try that. I thought the conversion was automatic.
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
-----Original Message-----
From: Tyler Montbriand [mailto:tsm at accesscomm.ca]
Sent: Domingo, 21 de Septiembre de 2003 10:29 p.m.
To: sdl at libsdl.org
Subject: Re: [SDL] Re: Ugly ogg problems
On Saturday 20 September 2003 03:56 pm, Andrew Balmos wrote:
> So can SDL not play 16 - Bit Mono?
SDL can play both 16-bit stereo and 16-bit mono - just not at the same
time.
:) Like, if you fed raw 8-bit samples directly into a 16-bit sound
device
you'd get garbage.. something has to translate them to 16-bit first.
I presume you're using SDL_sound, since you mention OGG samples. When
you
create the music stream, be sure to inform SDL_sound that you REQUIRE
the
stream's data format to match that of your current sound device;
otherwise it
doesn't know it's supposed to give you anything but the channels and
sample
rate of your music file.
_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
More information about the SDL
mailing list