29AudioPluginFormat::AudioPluginFormat() {}
33 double initialSampleRate,
34 int initialBufferSize)
41 double initialSampleRate,
42 int initialBufferSize,
48 errorMessage =
NEEDS_TRANS (
"This plug-in cannot be instantiated synchronously");
58 instance = std::move (p);
67 finishedSignal.
wait();
74 : desc (d), sampleRate (sr), bufferSize (size), callbackToUse (std::move (call))
85 double initialSampleRate,
int initialBufferSize,
92void AudioPluginFormat::handleMessage (
const Message& message)
94 if (
auto m =
dynamic_cast<const AsyncCreateMessage*
> (&message))
void postMessage(Message *message) const
Sends a message to the message queue, for asynchronous delivery to this listener later on.
static MessageManager * getInstance()
Returns the global instance of the MessageManager.
The base class for objects that can be sent to a MessageListener.
A small class to represent some facts about a particular type of plug-in.
Allows threads to wait for events triggered by other threads.
void signal() const
Wakes up any threads that are currently waiting on this object.
bool wait(double timeOutMilliseconds=-1.0) const
Suspends the calling thread until the event has been signalled.
#define NEEDS_TRANS(stringLiteral)
A dummy version of the TRANS macro, used to indicate a string literal that should be added to the tra...