Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2009 15:34:11 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: is there a way to convert an audio file into a char array?
Message-ID:  <44ws023mt8.fsf@lowell-desk.lan>
In-Reply-To: <20091231201117.GB3733@thought.org> (Gary Kline's message of "Thu, 31 Dec 2009 12:11:17 -0800")
References:  <20091231093637.GA1832@thought.org> <447hs3kmco.fsf@be-well.ilk.org> <20091231201117.GB3733@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Gary Kline <kline@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ws023mt8.fsf>