From 5173f51d52c1d2148c998fe2ec85a6703c02c20d Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Thu, 15 Aug 2013 09:28:43 +0200 Subject: [PATCH] Minor corrections in comments and syntax --- include/SFML/Audio/SoundRecorder.hpp | 2 +- src/SFML/Audio/Music.cpp | 2 +- src/SFML/Audio/Sound.cpp | 4 ++-- src/SFML/Audio/SoundRecorder.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/SFML/Audio/SoundRecorder.hpp b/include/SFML/Audio/SoundRecorder.hpp index c1b6c61f..0344e096 100644 --- a/include/SFML/Audio/SoundRecorder.hpp +++ b/include/SFML/Audio/SoundRecorder.hpp @@ -250,7 +250,7 @@ private : /// virtual functions (but not onStart) will be called /// from this separate thread. It is important to keep this in /// mind, because you may have to take care of synchronization -/// issues if you share data between threads. +/// issues if you share data between threads. /// /// Usage example: /// \code diff --git a/src/SFML/Audio/Music.cpp b/src/SFML/Audio/Music.cpp index ef784e45..b8dc6eb0 100644 --- a/src/SFML/Audio/Music.cpp +++ b/src/SFML/Audio/Music.cpp @@ -47,7 +47,7 @@ m_duration() //////////////////////////////////////////////////////////// Music::~Music() { - // We must stop before destroying the file :) + // We must stop before destroying the file stop(); delete m_file; diff --git a/src/SFML/Audio/Sound.cpp b/src/SFML/Audio/Sound.cpp index 8619cab4..4ef4dc5b 100644 --- a/src/SFML/Audio/Sound.cpp +++ b/src/SFML/Audio/Sound.cpp @@ -106,9 +106,9 @@ void Sound::setBuffer(const SoundBuffer& buffer) //////////////////////////////////////////////////////////// -void Sound::setLoop(bool Loop) +void Sound::setLoop(bool loop) { - alCheck(alSourcei(m_source, AL_LOOPING, Loop)); + alCheck(alSourcei(m_source, AL_LOOPING, loop)); } diff --git a/src/SFML/Audio/SoundRecorder.cpp b/src/SFML/Audio/SoundRecorder.cpp index d07c0e26..9ee70e69 100644 --- a/src/SFML/Audio/SoundRecorder.cpp +++ b/src/SFML/Audio/SoundRecorder.cpp @@ -67,7 +67,7 @@ void SoundRecorder::start(unsigned int sampleRate) // Check if the device can do audio capture if (!isAvailable()) { - err() << "Failed to start capture : your system cannot capture audio data (call SoundRecorder::IsAvailable to check it)" << std::endl; + err() << "Failed to start capture : your system cannot capture audio data (call SoundRecorder::isAvailable to check it)" << std::endl; return; }