Print out FMOD_ERR_INVALID_HANDLE FmodEx errors as debug level since handles always seem to become invalid when a sound stops

Mon, 11 Dec 2017 20:17:56 +0100

author
Ansariel
date
Mon, 11 Dec 2017 20:17:56 +0100
changeset 53564
7ca72747f5d6
parent 53563
6b8b1b9d5e2b
child 53565
7340db9eec38

Print out FMOD_ERR_INVALID_HANDLE FmodEx errors as debug level since handles always seem to become invalid when a sound stops

indra/llaudio/llaudioengine_fmodex.cpp file | annotate | diff | revisions
     1.1 --- a/indra/llaudio/llaudioengine_fmodex.cpp	Mon Dec 11 19:41:02 2017 +0100
     1.2 +++ b/indra/llaudio/llaudioengine_fmodex.cpp	Mon Dec 11 20:17:56 2017 +0100
     1.3 @@ -111,7 +111,14 @@
     1.4  		return false;
     1.5  	// </FS:Ansariel> Always print out error
     1.6  	//LL_DEBUGS() << string << " Error: " << FMOD_ErrorString(result) << LL_ENDL;
     1.7 -	LL_WARNS() << string << " Error: " << FMOD_ErrorString(result) << LL_ENDL;
     1.8 +	if (result != FMOD_ERR_INVALID_HANDLE)
     1.9 +	{
    1.10 +		LL_WARNS() << string << " Error: " << FMOD_ErrorString(result) << LL_ENDL;
    1.11 +	}
    1.12 +	else
    1.13 +	{
    1.14 +		LL_DEBUGS() << string << " Error: " << FMOD_ErrorString(result) << LL_ENDL;
    1.15 +	}
    1.16  	// </FS:Ansariel>
    1.17  	return true;
    1.18  }

mercurial