mirror of
https://github.com/AxioDL/amuse.git
synced 2025-08-19 02:11:30 +00:00
26 lines
539 B
C++
26 lines
539 B
C++
#ifndef __AMUSE_IBACKENDVOICEALLOCATOR_HPP__
|
|
#define __AMUSE_IBACKENDVOICEALLOCATOR_HPP__
|
|
|
|
#include <memory>
|
|
|
|
namespace amuse
|
|
{
|
|
class IBackendVoice;
|
|
class Voice;
|
|
|
|
/**
|
|
* @brief Client-implemented voice allocator
|
|
*/
|
|
class IBackendVoiceAllocator
|
|
{
|
|
public:
|
|
virtual ~IBackendVoiceAllocator() = default;
|
|
|
|
/** Amuse obtains a new voice from the platform this way */
|
|
virtual std::unique_ptr<IBackendVoice> allocateVoice(Voice& clientVox, double sampleRate, bool dynamicPitch)=0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __AMUSE_IBACKENDVOICEALLOCATOR_HPP__
|