diff options
author | Jörg Müller <nexyon@gmail.com> | 2019-05-11 00:01:04 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2019-05-11 00:01:04 +0300 |
commit | 8096f36796ae07a1a76e99abbaf216ab29260b74 (patch) | |
tree | 64ad4a670f2ea9c44d783cba2b474b0eee320e3a /extern/audaspace/src/generator/SilenceReader.cpp | |
parent | 243fbf1c4bacf82dd30dc9068ac634343d5b6ad6 (diff) |
Audaspace: porting changes from upstream.
- Silence now has an optional sample rate parameter.
- Fix: wrong length reported by modulator and superpose.
- Minor formatting, include and documentation fixes.
Diffstat (limited to 'extern/audaspace/src/generator/SilenceReader.cpp')
-rw-r--r-- | extern/audaspace/src/generator/SilenceReader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extern/audaspace/src/generator/SilenceReader.cpp b/extern/audaspace/src/generator/SilenceReader.cpp index 39358cc087a..746cc7600da 100644 --- a/extern/audaspace/src/generator/SilenceReader.cpp +++ b/extern/audaspace/src/generator/SilenceReader.cpp @@ -20,8 +20,9 @@ AUD_NAMESPACE_BEGIN -SilenceReader::SilenceReader() : - m_position(0) +SilenceReader::SilenceReader(SampleRate sampleRate) : + m_position(0), + m_sampleRate(sampleRate) { } @@ -48,7 +49,7 @@ int SilenceReader::getPosition() const Specs SilenceReader::getSpecs() const { Specs specs; - specs.rate = RATE_48000; + specs.rate = m_sampleRate; specs.channels = CHANNELS_MONO; return specs; } |