typedef int32_t (*read_stream)(void *, int32_t);
I'm trying to implement a WavPack decoder on embedded hardware using a ARM Cortex-M3 hardware.
The wavpack file is on a FAT formatted SD-Card, I'm able to read both the SD card blockwise, as well as the FAT-system blockwise. Blocks are 512 bytes wide.My implementation is incompatible to the format of the read_stream, so I try to implement a "translator" function.
Has anyone tried to get the decoder running on an ARM processor?Is there a port of the assembler part to thumb2-instructions?
Thats an interesting choice. Why such an odd ARM processor?
I've never heard of someone using the Thumb2 processors for audio, but I think its not too different from standard ARMv4, so you could probably adapt our assembly.
Code: [Select]typedef int32_t (*read_stream)(void *, int32_t);This implements the stream access - I assume, my function has to return a int32-value of how many bytes it could read and write the bytes to a buffer, void* points to (should it be a char*), the number of bytes that should be read is passed to the function as int32_t?