Skip to content

Commit

Permalink
Merge pull request #2543 from tobylane/musicexts
Browse files Browse the repository at this point in the history
Add more music file extensions
  • Loading branch information
TheCycoONE committed Apr 1, 2024
2 parents 3bb1100 + 2d065c8 commit 13d519e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CorsixTH/Lua/audio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ function Audio:init()
- Uses titles from MIDI.TXT if found, else the filename.
--]]
local midi_txt -- File name of midi.txt file, if any.
local waveform = { MP3=true, OGG=true, WAV=true, AIFF=true, VOC=true, FLAC=true }
local instructional = { MID=true, MOD=true, XM=true, XMI=true }
local waveform = list_to_set({"OGG", "OPUS", "FLAC", "WV", "WAV", "WAVE",
"MPG", "MPEG", "MP3", "MAD", "AIFF", "AIFC", "AIF"})
local instructional = list_to_set({"MID", "MIDI", "KAR", "669", "AMF", "AMS", "DBM",
"DSM", "FAR", "GDM", "IT", "MED", "MDL", "MOD", "MOL", "MTM", "NST", "OKT", "PTM",
"S3M", "STM", "ULT", "UMX", "WOW", "XM"})

local _f, _s, _v
if music_dir then
Expand Down

0 comments on commit 13d519e

Please sign in to comment.