Skip to content

Commit

Permalink
Fix Sample Editor not picking up Channel properties when loading a pr…
Browse files Browse the repository at this point in the history
…oject
  • Loading branch information
gvnnz committed Dec 8, 2023
1 parent 3a3d40b commit 25d290f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/channels/channelManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,10 @@ void ChannelManager::loadWaveInPreviewChannel(ID channelId)
assert(sourceCh.sampleChannel);

previewCh.loadWave(sourceCh.sampleChannel->getWave());
previewCh.sampleChannel->mode = SamplePlayerMode::SINGLE_BASIC_PAUSE;
previewCh.sampleChannel->mode = SamplePlayerMode::SINGLE_BASIC_PAUSE;
previewCh.sampleChannel->begin = sourceCh.sampleChannel->begin;
previewCh.sampleChannel->end = sourceCh.sampleChannel->end;
previewCh.sampleChannel->pitch = sourceCh.sampleChannel->pitch;

m_model.swap(model::SwapType::SOFT);
}
Expand Down

0 comments on commit 25d290f

Please sign in to comment.