Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
I just started using WWise.

How do I reverse the playback direction?
 
I'm creating a virtual Tape Recorder for a Game and I need this to implement rewind, backwards playback and scrubbing.
in General Discussion by Milan G. (190 points)
edited by Bernard R. (Audiokinetic)

2 Answers

0 votes
Hi Milan,

Wwise doesn't support playing sounds backward. You may want to produce and import a reverse version of these audio files and crossfade between forward and backward at runtime.

Also, from the SDK documentation, check for "GetSourcePlayPosition" and "Seek". That will probably helpful to implement your Tape Recorder.

Hope this helps,

Simon
by Simon A. (Audiokinetic) (3.6k points)
Hey Simon.
Thanks.

The Tape recorder is supposed to record the output of the Master Bus of the Game.
Then it should instantly be possible to scrub through the recording, or rewind it.

I guess the recording part is doable with AK::SoundEngine::StartOutputCapture()...

However, since it's not possible to play backwards, after each recording, i would have to generate a reversed version of the newly recorded file and wait for the conversion to finish before i am able to scrub and rewind ?

Would that be the way to go, or can you think of a better way to achieve the desired effect?

Cheers,
Milan
> i would have to generate a reversed version of the newly recorded file and wait for the conversion to finish before i am able to scrub and rewind ?

That could work, but would be far from ideal.  You will end up with  performance issues when reversing the recorded output.
0 votes

I suggest you implement new Wwise Effect inserted at the master bus level (see AkDelay in samples for an example).  This would be your Tape Recorder.

  • During normal playback, the effect records the audio coming in
  • When activating the reverse mode, the effect stop recording and rewind the audio

Please note this will require considerable amount of memory for recording the audio.

 

 

by Bernard R. (Audiokinetic) (35.8k points)
Could you elaborate?
Do you mean, writing my own plugin that does what i need?
I wouldn't be able to do that.
yes, you would need to write your own plug-in for that.  This requires C++ and signal processing knowledge.
Hi Bernard is possible to play a sound backwards from Unity using de SDK or API something like AkSoundEngine.pitch = -1;
...