FastLED 3.9.15
Loading...
Searching...
No Matches

◆ stb_vorbis_open_filename()

stb_vorbis * fl::third_party::vorbis::stb_vorbis_open_filename ( const char * filename,
int32_t * error,
const stb_vorbis_alloc * alloc )

Definition at line 4841 of file stb_vorbis.cpp.hpp.

4842{
4843 fl::FILE *f;
4844#if defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)
4845 if (0 != fopen_s(&f, filename, "rb"))
4846 f = nullptr;
4847#else
4848 f = fl::fopen(filename, "rb");
4849#endif
4850 if (f)
4851 return stb_vorbis_open_file(f, true, error, alloc);
4853 return nullptr;
4854}
static int32_t error(vorb *f, enum STBVorbisError e) FL_NOEXCEPT
stb_vorbis * stb_vorbis_open_file(fl::FILE *file, int32_t close_on_free, int32_t *error, const stb_vorbis_alloc *alloc)
FILE_impl FILE
Definition file_io.h:32
FILE * fopen(const char *path, const char *mode)
Open a file.
Definition file_io.h:246

References error(), fl::fopen(), stb_vorbis_open_file(), and VORBIS_file_open_failure.

Referenced by stb_vorbis_decode_filename().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: