Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Xna.Framework.Content.Pipeline.Audio/WavImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public override AudioContent Import(string filename, ContentImporterContext cont

// Validate the format of the input.
if (content.Format.SampleRate < 8000 || content.Format.SampleRate > 48000)
throw new InvalidContentException(string.Format("Audio file {0} contains audio data with unsupported sample rate of {1}KHz. Supported sample rates are from 8KHz up to 48KHz.", Path.GetFileName(filename), content.Format.SampleRate));
throw new InvalidContentException(string.Format("Audio file {0} contains audio data with unsupported sample rate of {1}Hz. Supported sample rates are from 8KHz up to 48KHz.", Path.GetFileName(filename), content.Format.SampleRate));
var validPcm = content.Format.Format == 1 && (content.Format.BitsPerSample == 8 || content.Format.BitsPerSample == 16 || content.Format.BitsPerSample == 24);
var validAdpcm = (content.Format.Format == 2 || content.Format.Format == 17) && content.Format.BitsPerSample == 4;
var validIeeeFloat = content.Format.Format == 3 && content.Format.BitsPerSample == 32;
Expand Down