mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-27 02:50:53 +00:00
Changed: #878 Fix typos in comments/code
This commit is contained in:
parent
097ca1f3de
commit
7e9baec441
8 changed files with 17 additions and 16 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -267,7 +267,7 @@ private:
|
|||
|
||||
enum TSourceState
|
||||
{
|
||||
source_stoped,
|
||||
source_stopped,
|
||||
source_playing,
|
||||
source_silencing,
|
||||
source_swap_pending
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
|
||||
struct FSOUND_STREAM;
|
||||
|
||||
namespace NLSOUND {
|
||||
namespace NLSOUND
|
||||
{
|
||||
class CSoundDriverFMod;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ private:
|
|||
|
||||
enum TSourceState
|
||||
{
|
||||
source_stoped,
|
||||
source_stopped,
|
||||
source_playing,
|
||||
source_silencing,
|
||||
source_swap_pending
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue