Porting Wavpack decoder to Dart |
Porting Wavpack decoder to Dart |
Jan 30 2013, 11:51
Post
#1
|
|
|
Group: Members Posts: 45 Joined: 14-June 11 Member No.: 91517 |
Hi!
I'm trying to port the Wavpack decoder to Dart. I've used the Java version as the starting point and i've actually made it compilable very quickly. I'm trying to test it first with the standalone Dart VM and when that's working i will make it compatible with in-browser running. When i started debugging the code i've realized that bit shifting in Dart is not working the same way as in Java because Dart have just one fixed point integer format. It uses a similar numeric system as Javascript. (there's a signed int type for generic integer handling, afaik its a 64bit signed integer, and num for double precision). The decoder fails very quickly in the beginning when it tries to calculate header's CRC. As i see there's a lot of bit manipulations in the code so i guess there's plenty of this kind of errors awaiting for me. I'm wondering if there's a floating point version of the decoder available? Maybe that would be easier to port. I guess an even better way would be to understand the format and write a Dart decoder from scratch but that's a lot of work although it would be very interesting. What do you think? Thanks! Mod: i'll upload my current code to a code hosting site tonight if i won't forget it. This post has been edited by darkbyte: Jan 30 2013, 12:03 |
|
|
|
darkbyte Porting Wavpack decoder to Dart Jan 30 2013, 11:51
nu774 Maybe you had better read ECMA script spec, where ... Jan 30 2013, 12:32
darkbyte QUOTE (nu774 @ Jan 30 2013, 13:32) Maybe ... Jan 30 2013, 12:38
soiaf Sounds interesting, looking forward to seeing the ... Jan 30 2013, 21:51
darkbyte I couldn't make the bit shifting working in Da... Jan 30 2013, 23:01
bryant This is very cool...please keep us posted on your ... Feb 1 2013, 04:34![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 19:29 |