Computer Science Canada

Playing music at the same time as program

Author:  codergirl [ Tue Jun 19, 2018 10:24 am ]
Post subject:  Playing music at the same time as program

so I have music that i want to play at the same time as my program but the music has to play before even displaying the program? Is there any way to get it to run at the same time?

Author:  Insectoid [ Tue Jun 19, 2018 11:10 am ]
Post subject:  RE:Playing music at the same time as program

Music.PlayFileLoop will loop music in the background until Music.PlayFileStop is called. If you don't want it to loop, you can run Music.PlayFile inside a process.

Author:  Srlancelot39 [ Tue Jun 19, 2018 12:54 pm ]
Post subject:  Re: RE:Playing music at the same time as program

Insectoid @ Tue Jun 19, 2018 11:10 am wrote:
...you can run Music.PlayFile inside a process.


I did this for my medieval RPG and it worked perfectly. You can also code in controls, such as pressing a key to advance to the next track or stop/play the music. Processes don't work so well for graphics, but they're great for audio!


: