Change non-fatal debug messages in the sound code from LOG_ERROR to LOG_WARNING instead.
fixes ticket:427 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7382 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
b60b1ad10b
commit
1855990fa8
|
@ -1023,7 +1023,7 @@ SDWORD audio_GetTrackID( const char *fileName )
|
|||
|
||||
if (fileName == NULL || strlen(fileName) == 0)
|
||||
{
|
||||
debug(LOG_ERROR, "audio_GetTrackID: fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty");
|
||||
debug(LOG_WARNING, "fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty");
|
||||
return SAMPLE_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,14 +97,14 @@ unsigned int sound_SetTrackVals(const char* fileName, BOOL loop, unsigned int vo
|
|||
|
||||
if (fileName == NULL || strlen(fileName) == 0) // check for empty filename. This is a non fatal error.
|
||||
{
|
||||
debug(LOG_ERROR, "sound_SetTrackVals: fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty");
|
||||
debug(LOG_WARNING, "fileName is %s", (fileName == NULL) ? "a NULL pointer" : "empty");
|
||||
return 0;
|
||||
}
|
||||
|
||||
psTrack = resGetData( "WAV", fileName );
|
||||
if (psTrack == NULL)
|
||||
{
|
||||
debug(LOG_ERROR, "sound_SetTrackVals: track %s resource not found", fileName);
|
||||
debug(LOG_WARNING, "track %s resource not found", fileName);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue