Skip to content

Commit

Permalink
Traktor: Using gain from asset when previewing sound asset in editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Feb 29, 2024
1 parent 56b4243 commit 950e886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Sound/Editor/SoundAssetEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void SoundAssetEditor::eventToolBarClick(ui::ToolBarButtonClickEvent* event)
if (m_soundHandle)
m_soundHandle->stop();

m_soundHandle = m_soundPlayer->play(new Sound(buffer, 0, 1.0f, 0.0f), 0);
m_soundHandle = m_soundPlayer->play(new Sound(buffer, 0, m_asset->getGain(), 0.0f), 0);
}

void SoundAssetEditor::eventPropertyCommand(ui::PropertyCommandEvent* event)
Expand Down

0 comments on commit 950e886

Please sign in to comment.