diff options
| author | Ray <[email protected]> | 2024-04-02 09:38:06 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-04-02 09:38:06 +0200 |
| commit | 646d70e93a5a049cb9f603c3b94ee1ba98c9161e (patch) | |
| tree | 9f428f78eb77548156a8bc0348a9efb02cb7b9ef /src/raudio.c | |
| parent | 1b047995d1046a869fb0f1e8ecf430573e0207e9 (diff) | |
| download | raylib-646d70e93a5a049cb9f603c3b94ee1ba98c9161e.tar.gz raylib-646d70e93a5a049cb9f603c3b94ee1ba98c9161e.zip | |
Remove trailing spaces
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raudio.c b/src/raudio.c index 4d0de45a..0e9e043d 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -942,13 +942,13 @@ Sound LoadSoundAlias(Sound source) if (source.stream.buffer->data != NULL) { AudioBuffer *audioBuffer = LoadAudioBuffer(AUDIO_DEVICE_FORMAT, AUDIO_DEVICE_CHANNELS, AUDIO.System.device.sampleRate, 0, AUDIO_BUFFER_USAGE_STATIC); - + if (audioBuffer == NULL) { TRACELOG(LOG_WARNING, "SOUND: Failed to create buffer"); return sound; // Early return to avoid dereferencing the audioBuffer null pointer } - + audioBuffer->sizeInFrames = source.stream.buffer->sizeInFrames; audioBuffer->volume = source.stream.buffer->volume; audioBuffer->data = source.stream.buffer->data; @@ -1081,7 +1081,7 @@ bool ExportWaveAsCode(Wave wave, const char *fileName) int waveDataSize = wave.frameCount*wave.channels*wave.sampleSize/8; // NOTE: Text data buffer size is estimated considering wave data size in bytes - // and requiring 12 char bytes for every byte; the actual size varies, but + // and requiring 12 char bytes for every byte; the actual size varies, but // the longest possible char being appended is "%.4ff,\n ", which is 12 bytes. char *txtData = (char *)RL_CALLOC(waveDataSize*12 + 2000, sizeof(char)); @@ -2752,7 +2752,7 @@ static bool SaveFileData(const char *fileName, void *data, int dataSize) return false; } } - else + else { TRACELOG(LOG_WARNING, "FILEIO: File name provided is not valid"); return false; |
