On Wed, Nov 19, 2008 at 05:50:13PM -0000, afg_herwijn wrote:
> Hi Andrew,
> I am interested in continuously recording sound on the TS 7260. I am
> using a usb soundcard. I can record in wav format, but this is too
> big. I have tried lame to record in mp3, but the TS 7260 cannot handle
> this in realtime. I have just started to play around with wavpack, but
> it does not seem to work in real time either. Any thoughts or suggestions.
I've successfully streamed 4 channels of 16khz, 16 bit sound through
wavpack on a ts-7260 to flash or out a wireless link.
I use EABI now, but using OABI I think the compression took about 30%
of the CPU. I now compile libwavpack into my programs but forking
the command line binary effectively like this worked for me:
FILE *f = popen(/"usr/bin/wavpack -q -f - >sound.wv", "w");
fwrite(wav_header, sizeof wav_header, 1, f);
fwrite(buffer, sizeof *buffer, n_channels*n_frames, f);
fclose(f);
If your audio bandwidth isn't much higher, I'd guess
the problem isn't wavpack.
Andrew
|