2009-01-21 17:48:58 UTC
Hi!
I`m again here :)
I done, what you wrote: I take IAPEDecompress m_decoder and envoked Seek(blocks) method. But I have an exception:
davaguine.jmac.tools.JMACException: Unsupported Method
at davaguine.jmac.tools.InputStreamFile.seek(InputStreamFile.java:164)
at davaguine.jmac.decoder.UnBitArrayBase.FillAndResetBitArray(UnBitArrayBase.java:80)
at davaguine.jmac.decoder.APEDecompress.SeekToFrame(APEDecompress.java:361)
at davaguine.jmac.decoder.APEDecompress.Seek(APEDecompress.java:132)
at ru.orbita.nplayer.player.Player.setCurrentPosition(Player.java:1028)
I evaluated blocks count like this:
blocks = (int)((long)getApeInfoDecompressTotalBlocks * duration / currentPosition)
As an example for one .ape file and mouse seek, I have blocks = 10532079, while total blocks is 105320796.
What is incorrect?
Thanks (Спасибо!)