diff options
| author | Ray <[email protected]> | 2021-03-19 19:43:44 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-19 19:43:44 +0100 |
| commit | 990906871435fa056d9002810c9f4a46076207bb (patch) | |
| tree | 818754766a127aed414cdf060093d443107d44d1 /src/raudio.c | |
| parent | e28f754fbe9a7414be89e76359453ef663dc088f (diff) | |
| download | raylib-990906871435fa056d9002810c9f4a46076207bb.tar.gz raylib-990906871435fa056d9002810c9f4a46076207bb.zip | |
Removed trailing spaces
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/raudio.c b/src/raudio.c index f86f6859..2de3d1fb 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1302,10 +1302,10 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d { Music music = { 0 }; bool musicLoaded = false; - + char fileExtLower[16] = { 0 }; strcpy(fileExtLower, TextToLower(fileType)); - + if (false) { } #if defined(SUPPORT_FILEFORMAT_WAV) else if (TextIsEqual(fileExtLower, ".wav")) @@ -1313,10 +1313,10 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d drwav *ctxWav = RL_CALLOC(1, sizeof(drwav)); bool success = drwav_init_memory(ctxWav, (const void*)data, dataSize, NULL); - + music.ctxType = MUSIC_AUDIO_WAV; music.ctxData = ctxWav; - + if (success) { int sampleSize = ctxWav->bitsPerSample; @@ -1414,14 +1414,14 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d int result = 0; jar_mod_init(ctxMod); - + // copy data to allocated memory for default UnloadMusicStream unsigned char *newData = RL_MALLOC(dataSize); int it = dataSize / sizeof(unsigned char); for (int i = 0; i < it; i++){ newData[i] = data[i]; } - + // Memory loaded version for jar_mod_load_file() if (dataSize && dataSize < 32*1024*1024) { @@ -1429,7 +1429,7 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d ctxMod->modfile = newData; if(jar_mod_load(ctxMod, (void*)ctxMod->modfile, dataSize)) result = dataSize; } - + if (result > 0) { music.ctxType = MUSIC_MODULE_MOD; @@ -1444,7 +1444,7 @@ Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int d musicLoaded = true; } } -#endif +#endif else TRACELOG(LOG_WARNING, "STREAM: [%s] Fileformat not supported", fileType); if (!musicLoaded) |
