SPBMilliSecondsToBytes
SPBMilliSecondsToBytes Report number of bytes needed to hold a
recording
#include <Sound.h> Sound Manager
OSErr SPBMilliSecondsToBytes( inRefNum, milliseconds);
long inRefNum; a device reference number
long * milliseconds; points to a millisecond value
returns Error Code; 0=no error
The SPBMilliSecondsToBytes function reports how many bytes are
required to hold a recording of duration milliseconds, given the input device's
current sample rate, sample size, number of channels, and compression
factor.
inRefNum indicates the input device to use,
milliseconds points to a millisecond value to convert. On return, the number of
bytes is returned in the milliseconds parameter
Returns: an operating system Error Code.
noErr (0) No error
siBadSoundInDevice (-221) Invalid sound input device