/*MÚSICA*/
SDL_Init(SDL_INIT_AUDIO);
unsigned char bufferMUS[2048*1024]; //Buffer de 2 Mbytes
FILE * fm = fopen("M1.MP3", "rb");
int j = 0;
while(1) {
bufferMUS[j++] = fgetc(fm);
if( feof(fm) ) {
break ;
}
}
fclose(fm);
Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 4096);
SDL_RWops* rwops = SDL_RWFromMem(bufferMUS, sizeof(unsigned char)*j);
Mix_PlayMusic(Mix_LoadMUS_RW(rwops), -1);