Results 1 to 1 of 1
I am modifying the parrot.c program ( [Chapter 14] Programming /dev/dsp ) for my needs. Looking at the description of the buffer:
unsigned char buf[LENGTH*RATE*SIZE*CHANNELS/8];
I wondered why the constant ...
- 05-18-2011 #1Linux User
- Join Date
- Mar 2008
- Posts
- 287
Parrots buffer size definition
I am modifying the parrot.c program ([Chapter 14] Programming /dev/dsp) for my needs. Looking at the description of the buffer:
unsigned char buf[LENGTH*RATE*SIZE*CHANNELS/8];
I wondered why the constant rather than SIZE is used. I may want to run 16 bit Mono so presume the constant would be changed to 16 in that case. Is this correct?


Reply With Quote