[SoundComp-Develop] Small coding task anyone?
Status: Pre-Alpha
Brought to you by:
jssr67
|
From: <js...@ya...> - 2010-01-31 21:46:27
|
As I have the impression, one of the main speed killers at the moment is the unoptimized java file I/O. Anyone willing to redo the wave file output in C/C++? The WavStruct class should then also store its double precision data arrays in C and no longer in a Java ArrayList. An example on how to implement a C-side ProcessElement exists for example with the PinkNoise and PseudoHilbert classes. Possible simplifications: the channel count is a creation-time constant attribute, the C code needs no provisions for changing channel counts. Main thing to pay attention to is efficient and clean memory handling, as the data buffers might have to be reallocated from time to time while it is filled, because the sample count is NOT known ahead. Also, the data conversions for the different file formats can be done much more efficiently in C. Best would be first an implementation with only standard clib file I/O calls even if that is probably still not optimal speed-wise. Platform specific enhancements can be done afterwards. Whoever is interested, please reply to the list. If more than one of you likes to do it, you may also split parts of the work (for example when it comes to platform specific enhancements). This task is completely independent of anything else that needs to be done atm and is a good preparation for the later task of moving other signal related code to C. Best regards Jan __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |