Jump to content
  • Advertisement
Sign in to follow this  
Kalazart

SDL: Playing from the middle of the music

This topic is 4487 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!