コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

0 支持
I am attempting to play a .mp4 file in our project, which is using Wwise for its audio. I have already loaded the .mp4 and have access to the decoded audio and video streams.
The decoder provides the audio data in 16 bit interleaved int PCM format as well as information regarding the sample.

I believe that it should be possible to use the Wwise Audio Input plugin to have Wwise play this audio data.
I have rated my sound input plugin and soundbank (https://www.audiokinetic.com/library/edge/?source=Help&id=wwise_audio_input_plug_in) and have registered my plugin and callback functions (https://www.audiokinetic.com/library/edge/?source=SDK&id=referencematerial__audioinput.html) which are being called after my initial post Event.

I am not sure however what must be done inside of my ExecuteCallback function to correctly fill the AkAudioBuffer io_pBufferOut object for playback. Currently I attempt to call io_pbufferOut->AttachInterleavedData which results in no sound output and errors of "AK Error: Source starvation:" being printed. I believe that the starvation errors indicate that data is being requested faster than the decoder can provide them.

I have looked at the microphone example provided, but am not sure that it is the same scenario as I do not build a buffer form input device I am presented the buffer directly from the decoder.

Can anybody show an example of how to copy an in memory buffer to the io_pbufferOut and have it played by Wwise?

 

**edit**
The cause of the source starvation and silence was incorrectly setting available frames lower than the amount of data provided. I am not able to play and have sound output, however the sound is not correct at all. It sounds as though it sounds very choppy and does not seem to have the correct tone.
Kieran C. (110 ポイント) General Discussion
Kieran C. 編集

Please sign-in or register to answer this question.

...