Jump to content
IGNORED

Music crashing my game


Recommended Posts

I am working on a game that has music playing when the title screen appears and plays throughout the menu screens. I then intend to have different music play for the game itself… so I stop the music at the end of setup, then start the new music during the main game loop. Problem is that the music becomes choppy and the volume goes down (seems like it’s crashing). 
 

If I don’t stop the music from the options phase, the music will play through the whole game. But if I try and play new music, it crashes!  The game is quite large, does this sound like a memory or space issue?

Edited by Brian's Man Cave
Link to comment
Share on other sites

8 hours ago, Brian's Man Cave said:

I am working on a game that has music playing when the title screen appears and plays throughout the menu screens. I then intend to have different music play for the game itself… so I stop the music at the end of setup, then start the new music during the main game loop. Problem is that the music becomes choppy and the volume goes down (seems like it’s crashing). 
 

If I don’t stop the music from the options phase, the music will play through the whole game. But if I try and play new music, it crashes!  The game is quite large, does this sound like a memory or space issue?


How are you playing the new music "during the main game loop"?
 

    dZ.

Link to comment
Share on other sites

22 hours ago, Brian's Man Cave said:

yes, during the game loop I had some code that checks if music.playing = 0 ... if so then play music


If the music is stuttering, maybe there is something wrong with your invocation during the main loop which is causing it to re-enter.

 

    dZ.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...