Added Scripting interface for AudioClips #320

Merged
srishamharan merged 7 commits from AudioScripting into main 2023-01-30 17:08:39 +08:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 526c6dc883 - Show all commits

View File

@ -123,10 +123,10 @@ namespace SHADE
audioSys->AttachAudioClipToObject(handle.NativeObject, eid);
}
void Audio::DetachAudioClipToObject(AudioClipHandler handle, EntityID eid)
void Audio::DetachAudioClipFromObject(AudioClipHandler handle)
{
auto audioSys = SHSystemManager::GetSystem<SHAudioSystem>();
audioSys->DetachAudioClipToObject(handle.NativeObject, eid);
audioSys->DetachAudioClipFromObject(handle.NativeObject);
}
}

View File

@ -107,6 +107,6 @@ namespace SHADE
static void AddAudioClipToBGMChannelGroup(AudioClipHandler handle);
static void AddAudioClipToSFXChannelGroup(AudioClipHandler handle);
static void AttachAudioClipToObject(AudioClipHandler handle, EntityID eid);
static void DetachAudioClipToObject(AudioClipHandler handle, EntityID eid);
static void DetachAudioClipFromObject(AudioClipHandler handle);
};
}