Engine: Fix some bugs with effects.

This commit is contained in:
David Reid
2020-09-12 19:14:36 +10:00
parent 8d64b597f8
commit 5e1f653efb
2 changed files with 83 additions and 32 deletions
+9 -1
View File
@@ -12,11 +12,19 @@ typedef struct
ma_sound* pSound;
} sound_loaded_notification;
void on_sound_loaded(ma_async_notification* pNotification)
void on_sound_loaded(ma_async_notification* pNotification, int code)
{
sound_loaded_notification* pLoadedNotification = (sound_loaded_notification*)pNotification;
ma_uint64 lengthInPCMFrames;
if (code == MA_NOTIFICATION_INIT) {
} else if (code == MA_NOTIFICATION_COMPLETE) {
}
(void)code;
/*
This will be fired when the sound has finished loading. We should be able to retrieve the length of the sound at this point. Here we'll just set
the fade out time.