Playing only a certain part of a sound file

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SuperSparkplug
Posts: 65
Joined: Fri Feb 06, 2015 3:51 pm

Playing only a certain part of a sound file

Post 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?
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Playing only a certain part of a sound file

Post 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.
Post Reply