Mercurial > hg > svapp
diff audio/AudioCallbackPlaySource.h @ 682:161063152ddd by-id
Overhaul audio generator for ModelById
author | Chris Cannam |
---|---|
date | Tue, 02 Jul 2019 21:10:25 +0100 |
parents | 163573a73ebe |
children | e0b0f3e163ca |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.h Mon Jun 24 16:14:12 2019 +0100 +++ b/audio/AudioCallbackPlaySource.h Tue Jul 02 21:10:25 2019 +0100 @@ -29,6 +29,7 @@ #include "base/Thread.h" #include "base/RealTime.h" +#include "data/model/Model.h" #include <samplerate.h> @@ -73,12 +74,12 @@ * models. The models must match in sample rate, but they don't * have to have identical numbers of channels. */ - virtual void addModel(Model *model); + virtual void addModel(ModelId model); /** * Remove a model. */ - virtual void removeModel(Model *model); + virtual void removeModel(ModelId model); /** * Remove all models. (Silence will ensue.) @@ -292,7 +293,7 @@ /** * Specify that only the given set of models should be played. */ - void setSoloModelSet(std::set<Model *>s); + void setSoloModelSet(std::set<ModelId>s); /** * Specify that all models should be played as normal (if not @@ -344,7 +345,7 @@ } }; - std::set<Model *> m_models; + std::set<ModelId> m_models; RingBufferVector *m_readBuffers; RingBufferVector *m_writeBuffers; sv_frame_t m_readBufferFill;