Added Scripting interface for AudioClips #320
|
@ -123,10 +123,10 @@ namespace SHADE
|
||||||
audioSys->AttachAudioClipToObject(handle.NativeObject, eid);
|
audioSys->AttachAudioClipToObject(handle.NativeObject, eid);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Audio::DetachAudioClipToObject(AudioClipHandler handle, EntityID eid)
|
void Audio::DetachAudioClipFromObject(AudioClipHandler handle)
|
||||||
{
|
{
|
||||||
auto audioSys = SHSystemManager::GetSystem<SHAudioSystem>();
|
auto audioSys = SHSystemManager::GetSystem<SHAudioSystem>();
|
||||||
audioSys->DetachAudioClipToObject(handle.NativeObject, eid);
|
audioSys->DetachAudioClipFromObject(handle.NativeObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,6 @@ namespace SHADE
|
||||||
static void AddAudioClipToBGMChannelGroup(AudioClipHandler handle);
|
static void AddAudioClipToBGMChannelGroup(AudioClipHandler handle);
|
||||||
static void AddAudioClipToSFXChannelGroup(AudioClipHandler handle);
|
static void AddAudioClipToSFXChannelGroup(AudioClipHandler handle);
|
||||||
static void AttachAudioClipToObject(AudioClipHandler handle, EntityID eid);
|
static void AttachAudioClipToObject(AudioClipHandler handle, EntityID eid);
|
||||||
static void DetachAudioClipToObject(AudioClipHandler handle, EntityID eid);
|
static void DetachAudioClipFromObject(AudioClipHandler handle);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue