Changed: #878 Fix typos in comments/code

This commit is contained in:
kervala 2010-07-27 13:16:41 +02:00
parent 097ca1f3de
commit 7e9baec441
8 changed files with 17 additions and 16 deletions

View file

@ -102,7 +102,7 @@ CSourceDSound::CSourceDSound( uint sourcename )
_Format = Mono8;
_SampleFreq = _DefaultSampleRate;
_FillOffset = 0;
_State = source_stoped;
_State = source_stopped;
_PlayOffset = 0;
_LastPlayPos = 0;
_PosRelative= false;
@ -831,7 +831,7 @@ void CSourceDSound::stop()
// nldebug("Stop");
EnterCriticalSection(&_CriticalSection);
if (_State != source_stoped && _State != source_silencing)
if (_State != source_stopped && _State != source_silencing)
{
// retreive the cursors;
TCursors cursors;
@ -1042,7 +1042,7 @@ bool CSourceDSound::isPaused() const
bool CSourceDSound::isStopped() const
{
return _State == source_silencing || _State == source_stoped;
return _State == source_silencing || _State == source_stopped;
// return (_UserState == NL_DSOUND_STOPPED);
}
@ -1212,7 +1212,7 @@ bool CSourceDSound::update()
_SilenceWriten += updateSize;
if (_SilenceWriten == _SecondaryBufferSize)
_State = source_stoped;
_State = source_stopped;
}
else
{

View file

@ -267,7 +267,7 @@ private:
enum TSourceState
{
source_stoped,
source_stopped,
source_playing,
source_silencing,
source_swap_pending

View file

@ -229,7 +229,7 @@ void CMusicChannelFMod::stop()
if (_MusicStream)
{
/* just append this channel for closing. We have to maintain such a list because in case of async playing,
FMod FSOUND_Stream_Stop() and FSOUND_Stream_Close() calls fail if the file is not ready (hapens if music stoped
FMod FSOUND_Stream_Stop() and FSOUND_Stream_Close() calls fail if the file is not ready (hapens if music stopped
in the 50 ms after the play for instance)
*/
_WaitingForClose.push_back(_MusicStream);

View file

@ -21,7 +21,8 @@
struct FSOUND_STREAM;
namespace NLSOUND {
namespace NLSOUND
{
class CSoundDriverFMod;
/**

View file

@ -38,7 +38,7 @@ CSourceFMod::CSourceFMod( uint sourcename )
{
_Sample = NULL;
_NextSample = NULL;
_State = source_stoped;
_State = source_stopped;
_PosRelative= false;
_Loop = false;
@ -202,7 +202,7 @@ void CSourceFMod::stop()
_NextSample= NULL;
}
_State= source_stoped;
_State= source_stopped;
// Stop the FMod channel
if(_FModChannel!=-1)
@ -267,7 +267,7 @@ bool CSourceFMod::isPaused() const
bool CSourceFMod::isStopped() const
{
return _State == source_silencing || _State == source_stoped;
return _State == source_silencing || _State == source_stopped;
}

View file

@ -230,7 +230,7 @@ private:
enum TSourceState
{
source_stoped,
source_stopped,
source_playing,
source_silencing,
source_swap_pending

View file

@ -207,7 +207,7 @@ void CMusicSoundManager::startMusic(CMusicSound *newMs, CMusicSource *newSrc)
// start play the new music, xFade with the old
CAudioMixerUser::instance()->playMusic(CStringMapper::unmap(newMs->getFileName()), uint(xFade), true, newMs->getLooping());
// Mark the old one as stoped
// Mark the old one as stopped
if(_CurrentMusicPlaying)
{
_CurrentMusicPlaying->LastStopTime= CTime::getLocalTime();

View file

@ -342,7 +342,7 @@ void CSampleBank::onUpdate()
_SampleBankManager->m_AudioMixer->unregisterUpdate(this);
_LoadingDone = true;
// Force an update in the background manager (can restar stoped sound).
// Force an update in the background manager (can restar stopped sound).
_SampleBankManager->m_AudioMixer->getBackgroundSoundManager()->updateBackgroundStatus();
nlinfo("Sample bank %s loaded.", CStringMapper::unmap(_Name).c_str());