audio comment

main
Benjamin Kraft 2 years ago
parent 44fa51d0ad
commit 1596e42977
  1. 1
      CMakeLists.txt
  2. 2
      src/Audio.cpp

@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD 23)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets) find_package(Qt6 REQUIRED COMPONENTS Widgets)

@ -5,6 +5,8 @@
void Audio::update() { void Audio::update() {
auto cmd = pop(); auto cmd = pop();
double volume = cmd->volume;
unsigned soundId = cmd->soundId;
// use volume, soundId to play sound // use volume, soundId to play sound
delete cmd; delete cmd;

Loading…
Cancel
Save