mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 10:59:00 +00:00
Merge pull request #50 from quentin-dev/master
fix audio device constructor call in examples
This commit is contained in:
@@ -20,7 +20,7 @@ int main(void)
|
||||
|
||||
raylib::Window w(screenWidth, screenHeight, "raylib [audio] example - music playing (streaming)");
|
||||
|
||||
raylib::AudioDevice audio(); // Initialize audio device
|
||||
raylib::AudioDevice audio; // Initialize audio device
|
||||
|
||||
raylib::Music music("resources/guitar_noodling.ogg");
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ int main(void)
|
||||
|
||||
raylib::Window w(screenWidth, screenHeight, "raylib [audio] example - sound loading and playing");
|
||||
|
||||
raylib::AudioDevice audiodevice(); // Initialize audio device
|
||||
raylib::AudioDevice audiodevice; // Initialize audio device
|
||||
|
||||
raylib::Sound fxWav("resources/sound.wav"); // Load WAV audio file
|
||||
raylib::Sound fxOgg("resources/tanatana.ogg"); // Load OGG audio file
|
||||
|
||||
Reference in New Issue
Block a user