mirror of
https://github.com/ppy/osu
synced 2025-02-03 20:02:16 +00:00
11 lines
336 B
C#
11 lines
336 B
C#
|
using System.Linq;
|
||
|
|
||
|
namespace osu.Game.Rulesets.Edit.Checks.Components
|
||
|
{
|
||
|
public static class AudioCheckUtils
|
||
|
{
|
||
|
public static readonly string[] AUDIO_EXTENSIONS = { "mp3", "ogg", "wav" };
|
||
|
|
||
|
public static bool HasAudioExtension(string filename) => AUDIO_EXTENSIONS.Any(filename.ToLowerInvariant().EndsWith);
|
||
|
}
|
||
|
}
|