mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Engine: Fix some bugs with effects.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user