【问题标题】:Supported music files by BASS audio libraryBASS 音频库支持的音乐文件
【发布时间】:2012-02-21 22:33:19
【问题描述】:

有什么方法可以知道 Bass 音频库是否支持文件扩展名(例如 WAV/AIFF/MP3/MP2/MP1/OGG )?我想写一个像这样的函数:

Public void  Play(string File)
{
   if(IsSupportedFile(file)
     {

       // Add the appropriate code to play the file
     }

}
Public bool isSupported(string File)
{
  // Should return true if the file extension is supported by bass audio and add ons
}

【问题讨论】:

    标签: bass bass.dll


    【解决方案1】:

    试试这个:

    Public bool isSupported(string File)
    {
      return Un4seen.Bass.Utils.BASSAddOnIsFileSupported(Nothing, file);
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多