D
Drepple
Guest
Hi there,
I'm trying to create a game with a big circle that changes in size to the beat of a song. The audio files aren't imported into the game because i want people to be able to use their own files. I've succesfully managed to load a list of all songs in a certain folder, and i'm using the audio_create_stream function to play the sound. But this doesn't laod the whole file into game maker at once, so although it plays perfectly, i can't get the length or track position of the audio.
Is there any way to get the length of an audio file which is stored on the computer? I was thinking about using buffers but I have no idea how to import audio into one and how I can make a sound within game maker from the buffer.
Any help on working with audio would be appreciated, thanks.
I'm trying to create a game with a big circle that changes in size to the beat of a song. The audio files aren't imported into the game because i want people to be able to use their own files. I've succesfully managed to load a list of all songs in a certain folder, and i'm using the audio_create_stream function to play the sound. But this doesn't laod the whole file into game maker at once, so although it plays perfectly, i can't get the length or track position of the audio.
Is there any way to get the length of an audio file which is stored on the computer? I was thinking about using buffers but I have no idea how to import audio into one and how I can make a sound within game maker from the buffer.
Any help on working with audio would be appreciated, thanks.