Sound trouble

Hi,

I’m using SDL with the smpeg in order to show a mpeg movie on a 3d surface.
I’m not using a SDL window, I’m using a SDL_surface created with
SDL_AllocSurface because I’m my own openGL window. It shows the movie on my
3d surface but I can hear the sound only when I give SDL_Surface* surf =
SDL_SetVideoMode(1,1, 0, NULL); or something like that.
The problem is that it opens a new window, and I don’t want it.

Could someone help me ?---------------------------------------------
Dipl.-Ing. Vincent Honnet
Virtual Realit?t Center Aachen, Rechenzentrum
Seffenter Weg 23
52056 Aachen
Tel: +49 (0)241 80 29 248
e-mail. @Honnet

Hi,

I’m using SDL with the smpeg in order to show a mpeg movie on a 3d surface.
I’m not using a SDL window, I’m using a SDL_surface created with
SDL_AllocSurface because I’m my own openGL window. It shows the movie on my
3d surface but I can hear the sound only when I give SDL_Surface* surf =
SDL_SetVideoMode(1,1, 0, NULL); or something like that.
The problem is that it opens a new window, and I don’t want it.

Could someone help me ?

Are you using Windows? If so, you may need to set the window which SDL
uses for the DirectSound focus window. I’m not sure if there’s an external
API for that at the moment. I’ll look into it.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I’m using SDL with the smpeg in order to show a mpeg movie on a 3d surface.
I’m not using a SDL window, I’m using a SDL_surface created with
SDL_AllocSurface because I’m my own openGL window. It shows the movie on my
3d surface but I can hear the sound only when I give SDL_Surface* surf =
SDL_SetVideoMode(1,1, 0, NULL); or something like that.
The problem is that it opens a new window, and I don’t want it.

I’ve had trouble where SMPEG only decodes sound when you’ve actually
opened the audio device with SDL, regardless of whether you want to use
SDL for audio playback or not (this is due to SMPEG using SDL_MixAudio()
in the sound decoding routines. This will be fixed when I get around to
hacking the library up…)

Could be something similar. SMPEG is a bit of a control freak at the moment.

–ryan.