diff --git a/src/common/audio-shm.cpp b/src/common/audio-shm.cpp index 7aa1d7b5..a2d7d3bc 100644 --- a/src/common/audio-shm.cpp +++ b/src/common/audio-shm.cpp @@ -22,8 +22,9 @@ AudioShmBuffer::AudioShmBuffer(const Config& config) config.name.c_str(), boost::interprocess::read_write) { shm.truncate(config.size); - buffer = boost::interprocess::mapped_region( - shm, boost::interprocess::read_write, 0, config.size); + buffer = + boost::interprocess::mapped_region(shm, boost::interprocess::read_write, + 0, config.size, nullptr, MAP_LOCKED); } AudioShmBuffer::~AudioShmBuffer() noexcept {