mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 21:17:49 +00:00
Initial stubs and basic Engine implementation
This commit is contained in:
31
lib/AudioGroup.cpp
Normal file
31
lib/AudioGroup.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "amuse/AudioGroup.hpp"
|
||||
#include "amuse/AudioGroupData.hpp"
|
||||
|
||||
namespace amuse
|
||||
{
|
||||
|
||||
AudioGroup::AudioGroup(int groupId, const AudioGroupData& data)
|
||||
: m_groupId(groupId),
|
||||
m_pool(data.getPool()),
|
||||
m_proj(data.getProj()),
|
||||
m_sdir(data.getSdir()),
|
||||
m_samp(data.getSamp())
|
||||
{}
|
||||
|
||||
bool AudioGroup::sfxInGroup(int sfxId) const
|
||||
{
|
||||
}
|
||||
|
||||
bool AudioGroup::songInGroup(int songId) const
|
||||
{
|
||||
}
|
||||
|
||||
const AudioGroupSampleDirectory::Entry* AudioGroup::getSfxEntry(int sfxId) const
|
||||
{
|
||||
for (const AudioGroupSampleDirectory::Entry& ent : m_sdir.m_entries)
|
||||
if (ent.m_sfxId == sfxId)
|
||||
return &ent;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user