Skip to content

Commit

Permalink
AudioFileReader supports filenames ending with .aif, resolves #216
Browse files Browse the repository at this point in the history
  • Loading branch information
markheath committed Aug 6, 2017
1 parent 93f2a64 commit cfc72d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NAudio/Wave/WaveStreams/AudioFileReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void CreateReaderStream(string fileName)
{
readerStream = new Mp3FileReader(fileName);
}
else if (fileName.EndsWith(".aiff"))
else if (fileName.EndsWith(".aiff", StringComparison.OrdinalIgnoreCase) || fileName.EndsWith(".aif", StringComparison.OrdinalIgnoreCase))
{
readerStream = new AiffFileReader(fileName);
}
Expand Down

0 comments on commit cfc72d4

Please sign in to comment.