is there a way to convert an audio file into a char array?

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Thu Dec 31 20:34:21 UTC 2009


Gary Kline <kline at thought.org> writes:

> 	Yeah, I views the file with od -c; but wouldn't it be much faster
> 	to have the data file part of my test program than having to open,
> 	read, cat thru /dev/dsp each time, close file?  I stole the cat
> 	from the K&R book, and by reading the click.h data file it seems
> 	everything would go much faster.

Faster, yes, by multiple microseconds.

Save your time, not the computer's.  

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list