diff options
| author | raysan5 <[email protected]> | 2021-02-05 19:19:44 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-02-05 19:19:44 +0100 |
| commit | 5663c818033ce2a6739c83f411a4641412b691e6 (patch) | |
| tree | d560c54c09aaed6da1d6d942d6b997d257fd9cf7 /src/raudio.c | |
| parent | 56ff944def9233cecac613d4dc9c24953c3c8473 (diff) | |
| download | raylib-5663c818033ce2a6739c83f411a4641412b691e6.tar.gz raylib-5663c818033ce2a6739c83f411a4641412b691e6.zip | |
REVIEWED: raudio: Some LOG_ERROR -> LOG_WARNING #1562
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/raudio.c b/src/raudio.c index 8890ec26..38b3bb2b 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -423,7 +423,7 @@ void InitAudioDevice(void) ma_result result = ma_context_init(NULL, 0, &ctxConfig, &AUDIO.System.context); if (result != MA_SUCCESS) { - TRACELOG(LOG_ERROR, "AUDIO: Failed to initialize context"); + TRACELOG(LOG_WARNING, "AUDIO: Failed to initialize context"); return; } @@ -443,7 +443,7 @@ void InitAudioDevice(void) result = ma_device_init(&AUDIO.System.context, &config, &AUDIO.System.device); if (result != MA_SUCCESS) { - TRACELOG(LOG_ERROR, "AUDIO: Failed to initialize playback device"); + TRACELOG(LOG_WARNING, "AUDIO: Failed to initialize playback device"); ma_context_uninit(&AUDIO.System.context); return; } @@ -453,7 +453,7 @@ void InitAudioDevice(void) result = ma_device_start(&AUDIO.System.device); if (result != MA_SUCCESS) { - TRACELOG(LOG_ERROR, "AUDIO: Failed to start playback device"); + TRACELOG(LOG_WARNING, "AUDIO: Failed to start playback device"); ma_device_uninit(&AUDIO.System.device); ma_context_uninit(&AUDIO.System.context); return; @@ -463,7 +463,7 @@ void InitAudioDevice(void) // want to look at something a bit smarter later on to keep everything real-time, if that's necessary. if (ma_mutex_init(&AUDIO.System.lock) != MA_SUCCESS) { - TRACELOG(LOG_ERROR, "AUDIO: Failed to create mutex for mixing"); + TRACELOG(LOG_WARNING, "AUDIO: Failed to create mutex for mixing"); ma_device_uninit(&AUDIO.System.device); ma_context_uninit(&AUDIO.System.context); return; @@ -520,7 +520,7 @@ AudioBuffer *LoadAudioBuffer(ma_format format, ma_uint32 channels, ma_uint32 sam if (audioBuffer == NULL) { - TRACELOG(LOG_ERROR, "AUDIO: Failed to allocate memory for buffer"); + TRACELOG(LOG_WARNING, "AUDIO: Failed to allocate memory for buffer"); return NULL; } @@ -534,7 +534,7 @@ AudioBuffer *LoadAudioBuffer(ma_format format, ma_uint32 channels, ma_uint32 sam if (result != MA_SUCCESS) { - TRACELOG(LOG_ERROR, "AUDIO: Failed to create data conversion pipeline"); + TRACELOG(LOG_WARNING, "AUDIO: Failed to create data conversion pipeline"); RL_FREE(audioBuffer); return NULL; } @@ -1673,7 +1673,7 @@ static void OnLog(ma_context *pContext, ma_device *pDevice, ma_uint32 logLevel, (void)pContext; (void)pDevice; - TRACELOG(LOG_ERROR, "miniaudio: %s", message); // All log messages from miniaudio are errors + TRACELOG(LOG_WARNING, "miniaudio: %s", message); // All log messages from miniaudio are errors } // Reads audio data from an AudioBuffer object in internal format. |
