diff --git a/dotnet/samples/bin/datas/sound/canary.wav b/dotnet/samples/bin/datas/sound/canary.wav new file mode 100644 index 00000000..a0f3aecc Binary files /dev/null and b/dotnet/samples/bin/datas/sound/canary.wav differ diff --git a/dotnet/samples/bin/datas/sound/footsteps.wav b/dotnet/samples/bin/datas/sound/footsteps.wav deleted file mode 100644 index 30ef4349..00000000 Binary files a/dotnet/samples/bin/datas/sound/footsteps.wav and /dev/null differ diff --git a/dotnet/samples/bin/datas/sound/lepidoptera.ogg b/dotnet/samples/bin/datas/sound/lepidoptera.ogg deleted file mode 100644 index 282a3a0a..00000000 Binary files a/dotnet/samples/bin/datas/sound/lepidoptera.ogg and /dev/null differ diff --git a/dotnet/samples/bin/datas/sound/orchestral.ogg b/dotnet/samples/bin/datas/sound/orchestral.ogg new file mode 100644 index 00000000..f764d61d Binary files /dev/null and b/dotnet/samples/bin/datas/sound/orchestral.ogg differ diff --git a/dotnet/samples/sound/Sound.cs b/dotnet/samples/sound/Sound.cs index f82bce29..ee82b967 100644 --- a/dotnet/samples/sound/Sound.cs +++ b/dotnet/samples/sound/Sound.cs @@ -26,10 +26,10 @@ namespace sample_sound private static void PlaySound() { // Load a sound buffer from a wav file - SoundBuffer buffer = new SoundBuffer("datas/sound/footsteps.wav"); + SoundBuffer buffer = new SoundBuffer("datas/sound/canary.wav"); // Display sound informations - Console.WriteLine("footsteps.wav :"); + Console.WriteLine("canary.wav :"); Console.WriteLine(" " + buffer.Duration + " sec"); Console.WriteLine(" " + buffer.SampleRate + " samples / sec"); Console.WriteLine(" " + buffer.ChannelsCount + " channels"); @@ -56,10 +56,10 @@ namespace sample_sound private static void PlayMusic() { // Load an ogg music file - Music music = new Music("datas/sound/lepidoptera.ogg"); + Music music = new Music("datas/sound/orchestral.ogg"); // Display music informations - Console.WriteLine("lepidoptera.ogg :"); + Console.WriteLine("orchestral.ogg :"); Console.WriteLine(" " + music.Duration + " sec"); Console.WriteLine(" " + music.SampleRate + " samples / sec"); Console.WriteLine(" " + music.ChannelsCount + " channels"); diff --git a/samples/bin/datas/sound/canary.wav b/samples/bin/datas/sound/canary.wav new file mode 100644 index 00000000..a0f3aecc Binary files /dev/null and b/samples/bin/datas/sound/canary.wav differ diff --git a/samples/bin/datas/sound/footsteps.wav b/samples/bin/datas/sound/footsteps.wav deleted file mode 100644 index 30ef4349..00000000 Binary files a/samples/bin/datas/sound/footsteps.wav and /dev/null differ diff --git a/samples/bin/datas/sound/lepidoptera.ogg b/samples/bin/datas/sound/lepidoptera.ogg deleted file mode 100644 index 282a3a0a..00000000 Binary files a/samples/bin/datas/sound/lepidoptera.ogg and /dev/null differ diff --git a/samples/bin/datas/sound/orchestral.ogg b/samples/bin/datas/sound/orchestral.ogg new file mode 100644 index 00000000..f764d61d Binary files /dev/null and b/samples/bin/datas/sound/orchestral.ogg differ diff --git a/samples/sound/Sound.cpp b/samples/sound/Sound.cpp index 775b4b98..1872ae2f 100644 --- a/samples/sound/Sound.cpp +++ b/samples/sound/Sound.cpp @@ -15,11 +15,11 @@ void PlaySound() { // Load a sound buffer from a wav file sf::SoundBuffer buffer; - if (!buffer.LoadFromFile("datas/sound/footsteps.wav")) + if (!buffer.LoadFromFile("datas/sound/canary.wav")) return; // Display sound informations - std::cout << "footsteps.wav :" << std::endl; + std::cout << "canary.wav :" << std::endl; std::cout << " " << buffer.GetDuration() << " sec" << std::endl; std::cout << " " << buffer.GetSampleRate() << " samples / sec" << std::endl; std::cout << " " << buffer.GetChannelsCount() << " channels" << std::endl; @@ -49,11 +49,11 @@ void PlayMusic() { // Load an ogg music file sf::Music music; - if (!music.OpenFromFile("datas/sound/lepidoptera.ogg")) + if (!music.OpenFromFile("datas/sound/orchestral.ogg")) return; // Display music informations - std::cout << "lepidoptera.ogg :" << std::endl; + std::cout << "orchestral.ogg :" << std::endl; std::cout << " " << music.GetDuration() << " sec" << std::endl; std::cout << " " << music.GetSampleRate() << " samples / sec" << std::endl; std::cout << " " << music.GetChannelsCount() << " channels" << std::endl;