AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

Playing Sound Backwards?

0 支持
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.
Milan G. (190 ポイント) 2014 9/11 質問 General Discussion
Bernard R. (Audiokinetic) 2014 9/11 編集

回答 2

0 支持
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
Simon A. (Audiokinetic) (3,570 ポイント) 2014 9/11 回答
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 支持

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.

 

 

Bernard R. (Audiokinetic) (35,110 ポイント) 2014 9/11 回答
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;
...