{"id":495,"date":"2026-04-30T18:15:52","date_gmt":"2026-04-30T18:15:52","guid":{"rendered":"https:\/\/sites.wsagames.com\/jz15n24\/?p=495"},"modified":"2026-05-13T00:05:12","modified_gmt":"2026-05-13T00:05:12","slug":"a-wwise-soundbank-mistake-audio-vs-events","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/jz15n24\/2026\/04\/30\/a-wwise-soundbank-mistake-audio-vs-events\/","title":{"rendered":"A Wwise SoundBank Mistake: Audio vs Events"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today, when I was adding corresponding audio for the player opening and closing the backpack, I found a problem. I had clearly packaged the SoundBank normally, and the script reference was also correct, but for some reason the sound just would not play properly. The console also kept showing that the SoundBank had not been loaded.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"162\" src=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-4-1024x162.png\" alt=\"\" class=\"wp-image-500\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-4-1024x162.png 1024w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-4-300x47.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-4-768x121.png 768w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-4.png 1063w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">But the other sound effects in this SoundBank were all playing normally.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(Theoretically, I should not split SoundBanks like this, but as shown <a href=\"https:\/\/sites.wsagames.com\/jz15n24\/2026\/03\/25\/postscript-soundbank-optimization\/\" data-type=\"link\" data-id=\"https:\/\/sites.wsagames.com\/jz15n24\/2026\/03\/25\/postscript-soundbank-optimization\/\">earlier<\/a>, I misunderstood the meaning of SoundBank, and I am worried that changing it now might cause bugs, so I can only continue with the current setup.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried regenerating the SoundBank, but nothing changed. However, I quickly noticed one thing:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"528\" height=\"148\" src=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-2.png\" alt=\"\" class=\"wp-image-498\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-2.png 528w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-2-300x84.png 300w\" sizes=\"(max-width: 528px) 100vw, 528px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In Wwise, inside this SoundBank, the paths of these two kinds of sound effects were different. One was audio, and the other was event. I tried changing the audio to the corresponding event, and then it worked properly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To be honest, this startled me a bit, because in my amb SoundBank, almost everything was directly added as audio.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"536\" height=\"204\" src=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image.png\" alt=\"\" class=\"wp-image-496\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image.png 536w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-300x114.png 300w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">But this also made me start thinking: why is it that sometimes audio can play normally, but event cannot?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After checking the official tutorial:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Audio \/ Container = the sound itself<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Event = the button that plays the sound<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SoundBank = the packaged file that the game can access at runtime<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unity = only presses the button, it does not guess where the button is by itself<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So sometimes this very strange situation can happen: the audio\/container itself exists, but when Unity calls `Open_Backpack.Post()`, Wwise cannot find the runtime information for this Event, so it either does not play, or reports \u201cits soundbank has not been loaded\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As for the audio that played normally, that is because in the scene I was using the method of attaching `AkAmbient` to an Empty object. `AkAmbient` is originally an ambient sound player component in Unity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It can directly attach a Wwise object \/ event to play, and it is more like \u201cthis thing in the scene plays sound by itself\u201d. It does not necessarily strictly require you to go through an Event in the same way that a script does.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Meanwhile, the way I triggered opening and closing the backpack was by calling an Event through C#.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"89\" src=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-1.png\" alt=\"\" class=\"wp-image-497\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-1.png 468w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-1-300x57.png 300w\" sizes=\"(max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"991\" height=\"552\" src=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-3.png\" alt=\"\" class=\"wp-image-499\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-3.png 991w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-3-300x167.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/04\/image-3-768x428.png 768w\" sizes=\"(max-width: 991px) 100vw, 991px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So naturally, it could not find the object, because it was hardcoded here to trigger using an Event, but there was no corresponding Event in my SoundBank. I had the Event, and I had the audio, and both of them were packaged, but they were separate. For Unity, my Event did not contain audio, and the audio did not have a corresponding Event.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Although audio may not cause problems in some situations, to be safe, it is still better to package everything using Events in the future.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Source\uff1a <a href=\"https:\/\/www.audiokinetic.com\/fr\/public-library\/2025.1.7_9143\/?source=SDK&amp;id=concept_banks.html\">https:\/\/www.audiokinetic.com\/fr\/public-library\/2025.1.7_9143\/?source=SDK&amp;id=concept_banks.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, when I was adding corresponding audio for the player opening and closing the backpack, I found a problem. I had clearly packaged the SoundBank normally, and the script reference was also correct, but for some reason the sound just would not play properly. The console also kept showing that the SoundBank had not been [&hellip;]<\/p>\n","protected":false},"author":61,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-495","post","type-post","status-publish","format-standard","hentry","category-weekly-development"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":2,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":502,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts\/495\/revisions\/502"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}