Is this is correct?

hi,
always with my probs, I arrive to ask myself if is not my code who not
flase.
it’s just a code who play a mp3 (toto.mp3)
is it correct???

thnks
aa+++

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include
#include
#include “SDL.h”
#include “SDL_mixer.h”

using namespace std;

int main(int argc, char *argv[])
{
cout << “Hello, world!” << endl;

SDL_Init(SDL_INIT_AUDIO);
Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 2048);
Mix_Music *pMusic;
pMusic = Mix_LoadMUS(“toto.mp3”);
Mix_PlayMusic(pMusic, 0 );
Mix_FreeMusic( pMusic );
Mix_CloseAudio();
return EXIT_SUCCESS;
}

What I think is happening is you start playing music, and then immediately
free it, close the audio, and quit. At best, you’ll only hear a split-second
of sound! ;^)

Your app shouldn’t quit until the music has completed!

-bill!
bill at newbreedsoftware.com Man, some trip this turned out to be.
http://www.newbreedsoftware.com/ All we caught is a tire, a boot,
New Breed Software a tin can and this book of cliches.On Mon, Sep 13, 2004 at 09:01:14AM +0200, elekis wrote:

hi,
always with my probs, I arrive to ask myself if is not my code who not
flase.
it’s just a code who play a mp3 (toto.mp3)
is it correct???