Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarSongbook.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-01-03 20:08:57 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-01-03 20:08:57 +1100
commitddc64fb14caded7e49c0886cfa58b1ca82900262 (patch)
tree7086be21fb4bd2b5475746f9ae0c68544d90a81a /source/game/StarSongbook.cpp
parent91cf2d82515583d7627ce3fd452f81e345918144 (diff)
Fix up and add options menu slider
Diffstat (limited to 'source/game/StarSongbook.cpp')
-rw-r--r--source/game/StarSongbook.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarSongbook.cpp b/source/game/StarSongbook.cpp
index cba60f3..68db655 100644
--- a/source/game/StarSongbook.cpp
+++ b/source/game/StarSongbook.cpp
@@ -138,6 +138,7 @@ void Songbook::playback() {
}
AudioInstancePtr audioInstance = make_shared<AudioInstance>(*m_uncompressedSamples[note.file]);
+ audioInstance->setMixerGroup(MixerGroup::Instruments);
audioInstance->setPitchMultiplier(note.velocity);
auto start = m_timeSourceInstance->epoch + (int64_t)(note.timecode * 1000.0);
@@ -153,7 +154,7 @@ void Songbook::playback() {
void Songbook::render(RenderCallback* renderCallback) {
for (auto& a : m_pendingAudio)
- renderCallback->addInstrumentAudio(a);
+ renderCallback->addAudio(a);
m_pendingAudio.clear();
}