Re: Reading an Unsigned Short from a Stream

2009-09-10 Thread Martin McCormick
Never mind. I started from scratch using the same code and this time, it behaves as expected so I must have a typo in the original code attempt that blocks. Sorry for the extra traffic. Martin McCormick writes: > It blocks forever. Shouldn't it stick one A/D reading > there and go on? --

Reading an Unsigned Short from a Stream

2009-09-10 Thread Martin McCormick
There is a well-documented bit of sample source code called parrot.c for which I am very thankful. It demonstrates how to use ioctl to set the sound card to the desired sample rate and sample type such as mono or stereo. It worked fine, but an experimental modification I made isn't working