Added warning message when trying to load .ogg files.

This commit is contained in:
Joshua Navarro 2018-12-10 01:43:05 -08:00
parent 67d77701b3
commit 00e2ffe177
1 changed files with 6 additions and 8 deletions

View File

@ -144,14 +144,7 @@ namespace StardewSymphonyRemastered.Framework
eff = SoundEffect.FromStream(waveFileStream);
}
else if (wav.Contains(".mp3"))
{
/*
Mp3FileReader mp3 = new Mp3FileReader(waveFileStream);
mp3.CopyTo(memoryStream); ;
wavData = memoryStream.ToArray();
eff = new SoundEffect(wavData, mp3.Mp3WaveFormat.SampleRate, AudioChannels.Mono);
*/
{
using (Mp3FileReader reader = new Mp3FileReader(waveFileStream))
{
using (WaveStream pcmStream = WaveFormatConversionStream.CreatePcmStream(reader))
@ -166,6 +159,11 @@ namespace StardewSymphonyRemastered.Framework
}
}
}
else if (wav.Contains(".ogg"))
{
StardewSymphony.ModMonitor.Log("Sorry, but .ogg files are currently not supported. Keep bugging the mod author (me) for this if you want it!", StardewModdingAPI.LogLevel.Alert);
continue;
}