A
atxgamedesigner
Guest
I have a handful of questions regarding working with audio files:
A) Is it be possible to allow the user to dynamically load audio files at runtime?
So instead of having a sound preloaded before game build, you allow the user to search their files for a specific audio file, then use it in your game?
B) Is it possible to control which channel the audio comes out of.
Like if a sound is setup as a "stereo" track - can you use GML to mix how much comes out of the left speaker vs how much comes out of the right speaker?
C) Is it possible to "timestamp" an audio file during playback?
Once stopped, the timestamp would be recorded, then when played again, it would pick back up where it left off.
I've tried capturing the position:
track_pos = audio_sound_get_track_position(snd_Main);
Then later setting the track position before playing:
audio_sound_set_track_position(snd_Main,track_pos);
audio_play_sound(snd_Main,1,true);
However this did not achieve the results I was looking for.
A) Is it be possible to allow the user to dynamically load audio files at runtime?
So instead of having a sound preloaded before game build, you allow the user to search their files for a specific audio file, then use it in your game?
B) Is it possible to control which channel the audio comes out of.
Like if a sound is setup as a "stereo" track - can you use GML to mix how much comes out of the left speaker vs how much comes out of the right speaker?
C) Is it possible to "timestamp" an audio file during playback?
Once stopped, the timestamp would be recorded, then when played again, it would pick back up where it left off.
I've tried capturing the position:
track_pos = audio_sound_get_track_position(snd_Main);
Then later setting the track position before playing:
audio_sound_set_track_position(snd_Main,track_pos);
audio_play_sound(snd_Main,1,true);
However this did not achieve the results I was looking for.