diff options
author | Robin Gareus <robin@gareus.org> | 2017-10-28 15:35:58 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-10-28 15:45:08 +0200 |
commit | 7512692e798a13480c94139ca0fc3fd2e92c9e5b (patch) | |
tree | 60650e63e08caa35a9a3278d785e9859e5be3788 /libs/backends | |
parent | d1b5a9ed3deb3045971bd16f6613ef328e49b7e8 (diff) |
Fix initial cycle noise with dummy-loopback
Diffstat (limited to 'libs/backends')
-rw-r--r-- | libs/backends/dummy/dummy_audiobackend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index 3993c82f1b..a8dcb8509e 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -1891,7 +1891,7 @@ DummyAudioPort::setup_generator (GeneratorType const g, float const samplerate, _ltcbuf = new PBD::RingBuffer<Sample> (std::max (DummyAudioBackend::max_buffer_size() * 2.f, samplerate)); break; case Loopback: - _wavetable = (Sample*) malloc (DummyAudioBackend::max_buffer_size() * sizeof(Sample)); + _wavetable = (Sample*) calloc (DummyAudioBackend::max_buffer_size(), sizeof(Sample)); break; } return name; |