mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-18 17:33:56 +02:00
Move memory mapping setup to a function
So we don't need to repeat this twice.
This commit is contained in:
@@ -181,6 +181,11 @@ class AudioShmBuffer {
|
||||
Config config;
|
||||
|
||||
private:
|
||||
/**
|
||||
* Resize the shared memory object, and set up the memory mapping.
|
||||
*/
|
||||
void setup_mapping();
|
||||
|
||||
boost::interprocess::shared_memory_object shm;
|
||||
boost::interprocess::mapped_region buffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user