# Amuse: include/amuse/AudioGroup.hpp Source File

AudioGroup.hpp
#ifndef __AMUSE_AUDIOGROUP_HPP__
#define __AMUSE_AUDIOGROUP_HPP__
#include "AudioGroupPool.hpp"
#include "AudioGroupProject.hpp"
#include "AudioGroupSampleDirectory.hpp"
namespace amuse
{
class AudioGroupData;
using Sample = std::pair<AudioGroupSampleDirectory::Entry,
AudioGroupSampleDirectory::ADPCMParms>;
class AudioGroup
{
AudioGroupProject m_proj;
AudioGroupPool m_pool;
AudioGroupSampleDirectory m_sdir;
const unsigned char* m_samp;
bool m_valid;
public:
operator bool() const {return m_valid;}
AudioGroup(const AudioGroupData& data);
const Sample* getSample(int sfxId) const;
const unsigned char* getSampleData(uint32_t offset) const;
const AudioGroupProject& getProj() const {return m_proj;}
const AudioGroupPool& getPool() const {return m_pool;}
};
}
#endif // __AMUSE_AUDIOGROUP_HPP__
amuse::AudioGroupData
Definition: AudioGroupData.hpp:8
amuse::AudioGroup
Definition: AudioGroup.hpp:16
amuse
Definition: AudioGroup.hpp:8
amuse::AudioGroupPool
Definition: AudioGroupPool.hpp:93
amuse::AudioGroupProject
Definition: AudioGroupProject.hpp:67
amuse::AudioGroupSampleDirectory
Definition: AudioGroupSampleDirectory.hpp:11