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