コミュニティQ&A

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

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

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

+10 支持
We have an issue of streaming media does not play after leaving a level. This issue can reproduce by a clean UE4.27.1 + wwise 2021.4.7707 project.

Our environment are listed below:
Environment
    Windows 10

    wwise 2021.1.4.7707

    Unreal 4.27.1 Release from Epic Launcher

    Use Event-Based Packaging is true

 

Reproduce Steps:

1.We created two music tracks in wwise. The one is set to streaming (Audio1), and the other is set to non streaming (Audio2).

2.Create two maps in UE4. The Map1 plays Audio1 when level starts; the Map2 plays Audio2 when level starts.

3.Play with Standalone game starts with Map1. Audio1 is played.
4. Use console command open Map2 to travel the map to Map2. Audio2 is played.

5. Use console command open Map1 to travel the map to Map1. Audio1 is not played. The log shows:

LogAkAudio: Error: Cannot open file: 411434698

LogAkAudio: Error: Failed creating source: 411434698

6. Use console command open Map2 to travel the map to Map2. Audio2 is played.

 

Notes:

In step1. Not only music track, Sound SFX does not works also if the media is set to stream.

In step3. Only Play in editor works well without any issue. However, packaged game and standalone game in editor do not works.

 

Please let me know if you have already know this issue or have a fix for this.

Thank you.
windkey k. (200 ポイント) General Discussion

回答 1

+3 支持
We also had this issue.  The problem we found is that any streamed media that is not flagged to be prefetched won't have bIsMediaSet set to true at any point.

Here is snippet of the change we made to UAkMediaAsset::LoadAndSetMedia() to fix this issue:

    auto& DataChunk = MediaAssetData->DataChunks[0];
    if (MediaAssetData->IsStreamed && !DataChunk.IsPrefetch)
    {
        FAkUnrealIOHook::AddStreamingMedia(this);
        LoadRefCount.Increment();

        // This flag was not being set on streamed media, causing
        // UAkMediaAsset::IsReadyForFinishDestroy to follow the wrong path during GC which
        // would prevent FAkUnrealIOHook::RemoveStreamingMedia from being called. After
        // this failure, the media asset would no longer stream properly. This flag would
        // normally be set by UAkMediaAsset::DoSetMedia however this is not run for
        // non-prefetch, streamed media due to this early out.
        bIsMediaSet = true;

        return;
    }
John M. (200 ポイント)
John M. 編集
Thank you! I am happy to confirm that this works.
Adding the prefetch flag on a streamed music track fixes my "failed play" issue, will try your solution thank you!
...