I'm trying to get all files from a directory that are one of these extensions: .aif, .wav, .mp3, or .ogg.
Can I somehow combine these in a searchpattern, or do I have to iterate through all files once per extension?
This is what I'd like:
foreach (string filePath in Directory.GetFiles(pathRoot + "/Music/" + path, "*.mp3" || "*.aif" || "*.wav" || "*.ogg"))
{
//Do stuff
}