Skip to content

Commit

Permalink
Merge pull request #92 from Samdal/patch-audio-file-extension
Browse files Browse the repository at this point in the history
Update gs_audio_impl.h
  • Loading branch information
MrFrenik authored Jan 8, 2024
2 parents dae79c1 + 7abcef6 commit b91ac6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impl/gs_audio_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ gs_handle(gs_audio_source_t) gs_audio_load_from_file(const char* file_path)
}

char ext[64] = gs_default_val();
gs_util_str_to_lower(file_path, ext, sizeof(ext));
gs_platform_file_extension(ext, sizeof(ext), ext);
gs_platform_file_extension(ext, sizeof(ext), file_path);
gs_util_str_to_lower(ext, ext, sizeof(ext));
gs_println("Audio: File Extension: %s", ext);

// Load OGG data
Expand Down

0 comments on commit b91ac6b

Please sign in to comment.