Changed: #878 Fix typos in comments/code

hg/feature/sound
kervala 15 years ago
parent 30ee5647df
commit 88a5f4e074

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

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

@ -229,7 +229,7 @@ void CMusicChannelFMod::stop()
if (_MusicStream) if (_MusicStream)
{ {
/* just append this channel for closing. We have to maintain such a list because in case of async playing, /* 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) in the 50 ms after the play for instance)
*/ */
_WaitingForClose.push_back(_MusicStream); _WaitingForClose.push_back(_MusicStream);

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

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

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

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

@ -342,7 +342,7 @@ void CSampleBank::onUpdate()
_SampleBankManager->m_AudioMixer->unregisterUpdate(this); _SampleBankManager->m_AudioMixer->unregisterUpdate(this);
_LoadingDone = true; _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(); _SampleBankManager->m_AudioMixer->getBackgroundSoundManager()->updateBackgroundStatus();
nlinfo("Sample bank %s loaded.", CStringMapper::unmap(_Name).c_str()); nlinfo("Sample bank %s loaded.", CStringMapper::unmap(_Name).c_str());

Loading…
Cancel
Save