Problem to open several mpeg1 movies in a SDL window

hello,

I want to write a mosaic video Application
I have tried to open 3 mpeg1 movies in a SDL window (with SMPEG)
with the function:
mpeg = SMPEG_new(f, &info, 0);
the sound is disable

when I use the function
SMPEG_enableaudio(mpeg, 1);
to enable the sound for one video, I receive this message
Xlib: unexpected async reply (sequence 0xac5)!
and the videos freeze

I have tried an other solution. I have witten a little function to
enable the sound
with SDL_audio but I need the function SMPEG_enableaudio() too.
With this function, it’s better but sometime the same problem occurs

int mpeg_enable_audio(SMPEG* new_mpeg, SMPEG* last_mpeg) {
SDL_PauseAudio(1);
SDL_CloseAudio();
mpeg_loop(new_mpeg, 0);
mpeg_stop(new_mpeg);
SMPEG_enableaudio(last_mpeg, 0);
SMPEG_wantedSpec( new_mpeg, &wanted );
wanted.callback = SMPEG_playAudio;
wanted.userdata = (void*) new_mpeg;
SMPEG_actualSpec(new_mpeg, &wanted);
if ( SDL_OpenAudio(&wanted, NULL) < 0 ) {
printf(“Ne peut ouvrir le p?riph?rique sonore: %s\n”,
SDL_GetError());
return(-1);
}
SMPEG_enableaudio(new_mpeg, 1);
mpeg_play(new_mpeg);
mpeg_loop(new_mpeg, 1);
SDL_PauseAudio(0);
return 0;
}

How can I do?

I really need help
Thanx in advance,
Valery

hello,

I want to write a mosaic video Application
I have tried to open 3 mpeg1 movies in a SDL window (with SMPEG)
with the function:
mpeg = SMPEG_new(f, &info, 0);
the sound is disable

when I use the function
SMPEG_enableaudio(mpeg, 1);
to enable the sound for one video, I receive this message
Xlib: unexpected async reply (sequence 0xac5)!
and the videos freeze

More than one video isn’t currently supported with SMPEG.
Please post to the SMPEG newsgroup for more information.
news://news.lokigames.com/loki.open-source.smpeg

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software