Sign in to follow this  
Kalazart

SDL: Playing from the middle of the music

Recommended Posts

Kalazart    148
Is there a way to play a music/chunk from a certain point in the middle of it? As in playing a song from 2:33, instead of 0:00. And can I load a MP3 file into a Mix_Chunk?

Share this post


Link to post
Share on other sites
Kalazart    148
Thanks... I must have missed that function when looking for that.

Now, I want to play 2 or more simultaneous MP3 songs, but I can't do that with Mix_Music data, since it plays only one at a time, so Mix_SetMusicPosition wouldn't work for me in this situation. Or can I make many Mix_Music to be played simultaneously?

If that can't be done, I'll have to stick with OGG, since I can do Mix_LoadWAV to load it and play many Mix_Chunk data at a time.

Share this post


Link to post
Share on other sites
samuraicrow    325
I don't think SDL_Mixer supports multiple songs playing at once. You may have to revert to .OGG and use OpenAL instead.

If you want to use .WAV then you can play as many samples at once as your sound card permits.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this