mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Working on installer, fixing more Win32 issues
Throwing error on member references with ".." cascade token outside invocations (ie: "ts..mA = 123") Fixed 'Thread.ModuleTLSIndex' error - which caused us TLS lookup failures in Beef DLLs Fixed some hotswap errors Made BeefPerf shut down properly Fixed an 'int literal' FixIntUnknown issue where rhs was System.Object which caused an illegal boxing Fixed COFF::LocateSymbol issues with Win32 and also with linking to static libraries - showed up with hot-linking in fmod when hot-adding a floating point mod Fixed a couple memory leaks Fixed alignment issue in COFF::ParseCompileUnit
This commit is contained in:
parent
aad0a640c5
commit
b63a243fd7
73 changed files with 2474 additions and 293 deletions
72
BeefySysLib/BFSound.cpp
Normal file
72
BeefySysLib/BFSound.cpp
Normal file
|
@ -0,0 +1,72 @@
|
|||
#include "BFSound.h"
|
||||
|
||||
using namespace Beefy;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BF_EXPORT int32 BF_CALLTYPE BFSoundManager_LoadSound(BFSoundManager* manager, const char* fileName)
|
||||
{
|
||||
return manager->LoadSound(fileName);
|
||||
}
|
||||
|
||||
BF_EXPORT BFSoundInstance* BF_CALLTYPE BFSoundManager_GetSoundInstance(BFSoundManager* manager, int32 sfxId)
|
||||
{
|
||||
return manager->GetSoundInstance(sfxId);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE BFSoundInstance_Release(BFSoundInstance* instance)
|
||||
{
|
||||
instance->Release();
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE BFSoundInstance_SetBaseVolume(BFSoundInstance* instance, float theBaseVolume)
|
||||
{
|
||||
instance->SetBaseVolume(theBaseVolume);
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE BFSoundInstance_SetBasePan(BFSoundInstance* instance, int theBasePan)
|
||||
{
|
||||
instance->SetBasePan(theBasePan);
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE BFSoundInstance_SetVolume(BFSoundInstance* instance, float theVolume)
|
||||
{
|
||||
instance->SetVolume(theVolume);
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE BFSoundInstance_SetPan(BFSoundInstance* instance, int thePosition)
|
||||
{
|
||||
instance->SetPan(thePosition);
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE BFSoundInstance_AdjustPitch(BFSoundInstance* instance, float theNumSteps)
|
||||
{
|
||||
instance->AdjustPitch(theNumSteps);
|
||||
}
|
||||
|
||||
BF_EXPORT bool BF_CALLTYPE BFSoundInstance_Play(BFSoundInstance* instance, bool looping, bool autoRelease)
|
||||
{
|
||||
return instance->Play(looping, autoRelease);
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE BFSoundInstance_Stop(BFSoundInstance* instance)
|
||||
{
|
||||
instance->Stop();
|
||||
}
|
||||
|
||||
BF_EXPORT bool BF_CALLTYPE BFSoundInstance_IsPlaying(BFSoundInstance* instance)
|
||||
{
|
||||
return instance->IsPlaying();
|
||||
}
|
||||
|
||||
BF_EXPORT bool BF_CALLTYPE BFSoundInstance_IsReleased(BFSoundInstance* instance)
|
||||
{
|
||||
return instance->IsReleased();
|
||||
}
|
||||
|
||||
BF_EXPORT float BF_CALLTYPE BFSoundInstance_GetVolume(BFSoundInstance* instance)
|
||||
{
|
||||
return (float)instance->GetVolume();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue