SDL_Mixer and jabbering monkeys

Hello guys!

As you may remember, I have a problem with SDL_Mixer and the SDL sound
subsystem. In short, it plays ogg files at 2x speed. Somebody described
this as “jabbering monkeys”, which is pretty accurate, and explained the
problem is because I’m trying to play a mono sample as stereo. Made
sense.

But I couldn’t figure out how to convert the sample to the same format
of the mixer. I can obtain the mixer’s format (Mix_QuerySpec), I can
build a SDL_AudioCVT, but I didn’t found a way to get the format of the
Mix_Chunk that I want to convert. The Mix_Chunk structure defined in
SDL_Mixer doesn’t even have the required fields.

What am I supposed to do? Is there any example out there?

Thanks a lot,
–Gabriel

Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy

Could we see your code? Is the ogg music being loaded by SDL_Sound or
SDL_Mixer(they both support it)?On Wednesday 24 September 2003 07:14 am, Gabriel Gambetta wrote:

Hello guys!

As you may remember, I have a problem with SDL_Mixer and the SDL sound
subsystem. In short, it plays ogg files at 2x speed. Somebody described
this as “jabbering monkeys”, which is pretty accurate, and explained the
problem is because I’m trying to play a mono sample as stereo. Made
sense.

But I couldn’t figure out how to convert the sample to the same format
of the mixer. I can obtain the mixer’s format (Mix_QuerySpec), I can
build a SDL_AudioCVT, but I didn’t found a way to get the format of the
Mix_Chunk that I want to convert. The Mix_Chunk structure defined in
SDL_Mixer doesn’t even have the required fields.

What am I supposed to do? Is there any example out there?

In short, it plays ogg files at 2x speed. Somebody
described this as “jabbering monkeys”, which is pretty accurate, and
explained the problem is because I’m trying to play a mono sample as
stereo. Made sense.
But I couldn’t figure out how to convert the sample to the same format
of the mixer.

Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy> ----- Original Message -----

From: Tyler Montbriand [mailto:tsm@accesscomm.ca]
Sent: Mi?rcoles, 24 de Septiembre de 2003 09:39 p.m.
To: sdl at libsdl.org
Subject: Re: [SDL] SDL_Mixer and jabbering monkeys

On Wednesday 24 September 2003 07:14 am, Gabriel Gambetta wrote:

Hello guys!

As you may remember, I have a problem with SDL_Mixer and the SDL sound
subsystem. In short, it plays ogg files at 2x speed. Somebody
described this as “jabbering monkeys”, which is pretty accurate, and
explained the problem is because I’m trying to play a mono sample as
stereo. Made sense.

But I couldn’t figure out how to convert the sample to the same format
of the mixer. I can obtain the mixer’s format (Mix_QuerySpec), I can
build a SDL_AudioCVT, but I didn’t found a way to get the format of
the Mix_Chunk that I want to convert. The Mix_Chunk structure defined
in SDL_Mixer doesn’t even have the required fields.

What am I supposed to do? Is there any example out there?
Could we see your code? Is the ogg music being loaded by SDL_Sound or
SDL_Mixer(they both support it)?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Sorry, my last message went off by mistake :frowning:

What am I supposed to do? Is there any example out there?
Could we see your code? Is the ogg music being loaded by SDL_Sound
or SDL_Mixer(they both support it)?

I don’t have my code here, I’ll post as soon as possible. I’m using
Mix_LoadChunk. This code is the same code that loads the other .ogg
files (the samples, this is music).

BTW, in Windows is the other way around : the music .ogg files play OK,
but the shorter samples started making static and/or a click. I’ll make
some tests to try and narrow the problem.

Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy