Added lua bindings for playing sounds in SCREENMAN. Added input redirection functions to SCREENMAN for disabling non-lua screen input processing. Added OF_FALSE, OV_EOF, and OV_HOLE to error string list in RageSound for more understandable messages. Made sure RageSound doesn't delete null pointers. Updated changelog.

This commit is contained in:
Kyzentun Keeslala
2016-02-03 13:05:23 -07:00
parent cfca85c464
commit 55e161336a
10 changed files with 161 additions and 6 deletions
+8 -2
View File
@@ -86,7 +86,10 @@ RageSound &RageSound::operator=( const RageSound &cpy )
m_bPlaying = false;
m_bDeleteWhenFinished = false;
delete m_pSource;
if(m_pSource != NULL)
{
delete m_pSource;
}
if( cpy.m_pSource )
m_pSource = cpy.m_pSource->Copy();
else
@@ -104,7 +107,10 @@ void RageSound::Unload()
LockMut(m_Mutex);
delete m_pSource;
if(m_pSource != NULL)
{
delete m_pSource;
}
m_pSource = NULL;
m_sFilePath = "";