boo::ObjToken for referencing voices and submixes

This commit is contained in:
Jack Andersen 2017-12-03 16:51:23 -10:00
parent 2f4d0e7541
commit 77215fc996
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class BooBackendVoice : public IBackendVoice
void routeAudio(size_t frames, size_t channels, double dt, int busId, float* in, float* out); void routeAudio(size_t frames, size_t channels, double dt, int busId, float* in, float* out);
VoiceCallback(BooBackendVoice& parent) : m_parent(parent) {} VoiceCallback(BooBackendVoice& parent) : m_parent(parent) {}
} m_cb; } m_cb;
std::unique_ptr<boo::IAudioVoice> m_booVoice; boo::ObjToken<boo::IAudioVoice> m_booVoice;
public: public:
BooBackendVoice(boo::IAudioVoiceEngine& engine, Voice& clientVox, double sampleRate, bool dynamicPitch); BooBackendVoice(boo::IAudioVoiceEngine& engine, Voice& clientVox, double sampleRate, bool dynamicPitch);
@ -58,7 +58,7 @@ class BooBackendSubmix : public IBackendSubmix
void resetOutputSampleRate(double sampleRate); void resetOutputSampleRate(double sampleRate);
SubmixCallback(BooBackendSubmix& parent) : m_parent(parent) {} SubmixCallback(BooBackendSubmix& parent) : m_parent(parent) {}
} m_cb; } m_cb;
std::unique_ptr<boo::IAudioSubmix> m_booSubmix; boo::ObjToken<boo::IAudioSubmix> m_booSubmix;
public: public:
BooBackendSubmix(boo::IAudioVoiceEngine& engine, Submix& clientSmx, bool mainOut, int busId); BooBackendSubmix(boo::IAudioVoiceEngine& engine, Submix& clientSmx, bool mainOut, int busId);