mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Minor corrections in comments and syntax
This commit is contained in:
parent
d9ba54f285
commit
5173f51d52
@ -250,7 +250,7 @@ private :
|
|||||||
/// virtual functions (but not onStart) will be called
|
/// virtual functions (but not onStart) will be called
|
||||||
/// from this separate thread. It is important to keep this in
|
/// from this separate thread. It is important to keep this in
|
||||||
/// mind, because you may have to take care of synchronization
|
/// 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:
|
/// Usage example:
|
||||||
/// \code
|
/// \code
|
||||||
|
@ -47,7 +47,7 @@ m_duration()
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Music::~Music()
|
Music::~Music()
|
||||||
{
|
{
|
||||||
// We must stop before destroying the file :)
|
// We must stop before destroying the file
|
||||||
stop();
|
stop();
|
||||||
|
|
||||||
delete m_file;
|
delete m_file;
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ void SoundRecorder::start(unsigned int sampleRate)
|
|||||||
// Check if the device can do audio capture
|
// Check if the device can do audio capture
|
||||||
if (!isAvailable())
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user