use SDL stdlib where possible
This commit is contained in:
@ -65,14 +65,14 @@ void audio_play(const char *path, const char *channel) {
|
||||
|
||||
|
||||
static AudioFileType infer_audio_file_type(const char *path) {
|
||||
size_t path_len = strlen(path);
|
||||
size_t path_len = SDL_strlen(path);
|
||||
|
||||
for (int i = 0; i < audio_file_type_count; ++i) {
|
||||
size_t ext_length = strlen(audio_exts[i]);
|
||||
size_t ext_length = SDL_strlen(audio_exts[i]);
|
||||
if (path_len <= ext_length)
|
||||
continue;
|
||||
|
||||
if (strcmp(&path[path_len - ext_length], audio_exts[i]) == 0)
|
||||
if (SDL_strcmp(&path[path_len - ext_length], audio_exts[i]) == 0)
|
||||
return (AudioFileType)i;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user