You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume that reader.Length / sizeof(float) should be equal to the final value of i. Actually It works well when it's a .wav file, but it doesn't seem to work on .flac files.
So have I missed something? Or perhaps AudioFileReader actually does not support flac files at all (but I have seen someone else are using NAudio to play .flac files, like #1072)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I'm trying to read some
.flac
files with NAudio but I've met some problems.I think the following code could describe it more clear:
And this is the audio file:
p225_001_mic2.zip
I assume that
reader.Length / sizeof(float)
should be equal to the final value ofi
. Actually It works well when it's a .wav file, but it doesn't seem to work on .flac files.Meanwhile, the following codes just print
-1
:So have I missed something? Or perhaps
AudioFileReader
actually does not support flac files at all (but I have seen someone else are using NAudio to play .flac files, like #1072)?Beta Was this translation helpful? Give feedback.
All reactions