Skip to content

Commit

Permalink
allow Bang messages in OnSendMessageCallback()
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Sep 11, 2024
1 parent 6eb3ae2 commit 1241800
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=====

Next Release
-----

Bugfixes

* wwise: allow Bang messages in OnSendMessageCallback()

0.12.0
-----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace {{name}}_Private
static void OnSendMessageCallback(HeavyContextInterface *in_pHeavyCtx, const char *in_szSendName, uint32_t in_uSendHash, const HvMessage *in_pHvMessage)
{
auto* pPlugin = reinterpret_cast<{{name}}{{plugin_type}}*>(in_pHeavyCtx->getUserData());
if (pPlugin != nullptr && hv_msg_isFloat(in_pHvMessage, 0))
if (pPlugin != nullptr && (hv_msg_isFloat(in_pHvMessage, 0) || hv_msg_isBang(in_pHvMessage, 0)))
{
switch (in_uSendHash)
{
Expand Down Expand Up @@ -293,4 +293,3 @@ void {{name}}{{plugin_type}}::Execute(AkAudioBuffer* io_pBuffer)
{% endif %}
AK_PERF_RECORDING_STOP("{{name}}{{plugin_type}}", 25, 30);
}

0 comments on commit 1241800

Please sign in to comment.