Memory reporting by OSC

This commit is contained in:
Jean Pierre Cimalando 2021-02-24 01:41:20 +01:00
parent 57a002972d
commit d1be18c0d9

View file

@ -88,6 +88,13 @@ void sfz::Synth::dispatchMessage(Client& client, int delay, const char* path, co
//----------------------------------------------------------------------
MATCH("/mem/buffers", "") {
uint64_t total = BufferCounter::counter().getTotalBytes();
client.receive<'h'>(delay, path, total);
} break;
//----------------------------------------------------------------------
MATCH("/region&/delay", "") {
GET_REGION_OR_BREAK(indices[0])
client.receive<'f'>(delay, path, region.delay);