const getSilenceWavetable

This commit is contained in:
Paul Ferrand 2020-03-28 21:29:38 +01:00
parent 9d8bfa5b82
commit 29fc84fb09
2 changed files with 2 additions and 2 deletions

View file

@ -250,7 +250,7 @@ WavetableMulti WavetableMulti::createForHarmonicProfile(
return wm;
}
WavetableMulti* WavetableMulti::getSilenceWavetable()
const WavetableMulti* WavetableMulti::getSilenceWavetable()
{
static WavetableMulti wm;
wm.allocateStorage(1);

View file

@ -160,7 +160,7 @@ public:
const HarmonicProfile& hp, double amplitude, unsigned tableSize = config::tableSize, double refSampleRate = 44100.0);
// get a tiny silent wavetable with null content for use with oscillators
static WavetableMulti* getSilenceWavetable();
static const WavetableMulti* getSilenceWavetable();
private:
// get a pointer to the beginning of the N-th table