Add .webClosed()
This commit is contained in:
parent
487a53dcc7
commit
4529d88042
@ -334,7 +334,7 @@ struct WebUILibraryEffect : public LibraryEffect<Sample, WebUIHelper<EffectSTFX,
|
||||
auto &message = queue[readIndex];
|
||||
return message.readyToSend.test();
|
||||
}
|
||||
|
||||
|
||||
// Poll on the main thread (and directly after any `.webReceive()`), calling `.sent()` after you've sent it, repeat until you get `nullptr`
|
||||
WebMessage * getPendingWebMessage() {
|
||||
auto &message = queue[readIndex];
|
||||
@ -385,6 +385,11 @@ struct WebUILibraryEffect : public LibraryEffect<Sample, WebUIHelper<EffectSTFX,
|
||||
}
|
||||
}
|
||||
|
||||
void webClosed() {
|
||||
// stops new messages from being queued up until the reset message is sent
|
||||
requestEntireState();
|
||||
}
|
||||
|
||||
// Replace `.process()` to add meter messages if they exist
|
||||
template<class Buffers>
|
||||
void process(Buffers &&buffers, int blockLength) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user