// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. namespace Microsoft.Xna.Framework.Content.Pipeline.Audio { /// /// Helper methods for audio importing, conversion and processing. /// class AudioHelper { // This array must remain in sync with the ConversionFormat enum. static string[] conversionFormatExtensions = new[] { "wav", "wav", "wma", "xma", "wav", "m4a", "ogg" }; /// /// Gets the file extension for an audio format. /// /// The conversion format /// The file extension for the given conversion format. static public string GetExtension(ConversionFormat format) { return conversionFormatExtensions[(int)format]; } } }