Closed dwebb7 closed 8 years ago
Could you please provide the wma file. In wma files are getting decoded by microsoft's wma decoder. I've just tested it with a wma file and works as expected. But let me take a look at your file. Thanks.
Yes, here you go. This was recorded and encoded using MediaToundationEncoder in Cscore. I also ripped a song from a CD using windows media player and I get the same result. Thanks for your help. Dan
https://dl.dropboxusercontent.com/u/16609856/TestMyRecorder.wma
I've made an attempt to fix it. Please test it and give me some feedback. The problem is that media foundation seeks to the next nearest keyframe. Now I am just skipping the delta between desired position and keyframe. Hopefully it helps.
Thank You! That did the trick.
See the code below. When I do this same thing with a WaveFileReader or Mp3MediafoundationDecoder it reports the position I would expect but the WmaDecoder reports a position around a second before the position I set. What causes this? Thanks for your help.