internal Song(string name, string file, AudioFormat format = AudioFormat.Ogg)
{
if (format != AudioFormat.Ogg)
throw new NotImplementedException("Support for formats other than ogg is not yet implemented.");
_name = name;
_file = file;
try
{
_stream = new OggStream(_file);
_stream.Prepare();
}
catch (InvalidDataException)
{
_stream.Dispose();
_stream = new OggStream(_file);
_stream.Prepare();
}
}