Page 1 of 1

Playing only a certain part of a sound file

Posted: Sat Aug 13, 2022 12:10 am
by SuperSparkplug
Hi there,

I have a section in my game with dialogue and Characters are supposed to make certain noises depending on the type of line (eg a grunt, say a 'bark' word to show their reaction while they're talking). I have the voice lines and I can separate them into individual files. and have it play the sound. However I was wondering if it was at all possible to export it all as one audio file and then tell it to only play that part of an audio file based on timestamps. Is that a thing or no?

Re: Playing only a certain part of a sound file

Posted: Sat Aug 13, 2022 11:45 am
by Tony Li
You might be able to write a custom sequencer command to do that. You could use SequencerCommandAudioWait() as a base. But it's probably much easier to manage by separating individual sounds into individual files so they're organized logically into the units in which they will be played.