MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilLoadMp3

Function ilLoadMp3

DevIL/src-IL/src/il_mp3.cpp:201–216  ·  view source on GitHub ↗

Reads a MP3 file

Source from the content-addressed store, hash-verified

199
200//! Reads a MP3 file
201ILboolean ilLoadMp3(ILconst_string FileName)
202{
203 ILHANDLE Mp3File;
204 ILboolean bMp3 = IL_FALSE;
205
206 Mp3File = iopenr(FileName);
207 if (Mp3File == NULL) {
208 ilSetError(IL_COULD_NOT_OPEN_FILE);
209 return bMp3;
210 }
211
212 bMp3 = ilLoadMp3F(Mp3File);
213 icloser(Mp3File);
214
215 return bMp3;
216}
217
218
219//! Reads an already-opened MP3 file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadMp3FFunction · 0.85

Tested by

no test coverage detected