Added warning message when trying to load .ogg files.
This commit is contained in:
parent
67d77701b3
commit
00e2ffe177
|
@ -145,13 +145,6 @@ namespace StardewSymphonyRemastered.Framework
|
||||||
}
|
}
|
||||||
else if (wav.Contains(".mp3"))
|
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 (Mp3FileReader reader = new Mp3FileReader(waveFileStream))
|
||||||
{
|
{
|
||||||
using (WaveStream pcmStream = WaveFormatConversionStream.CreatePcmStream(reader))
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue