SPBGetRecordingStatus
SPBGetRecordingStatus Obtain recording status information
#include <SoundInput.h> Sound Manager
OSErr SPBGetRecordingStatus ( inRefNum, recordingStatus,
meterLevel, totalSamplesToRecord,
numberOfSamplesRecorded, totalMsecsToRecord,
numberOfMsecsRecorded);
long inRefNum; a valid reference number of a sound input
device
short * recordingStatus; >0= recording
short *meterLevel; is the current input signal level
long *totalSamplesToRecord; the total to record
long * numberOfSamplesRecorded; how many samples have been recorded
long *totalMsecsToRecord; the total time to record
long * numberOfMsecsRecorded; how much time has been recorded
returns Error Code; 0=no error
You can use SPBGetRecordingStatus to obtain recording status
information about a sound input device.
inRefNum the reference number of a sound input device
recordingStatus While the input device is recording, recordingStatus is
greater than 0. When the recording terminates without an
error, recordingStatus is equal to 0. If any error occurs
during the recording, recordingStatus is less than 0 and
contains an error code. If the recording is terminated by
calling SPBStopRecording, then recordingStatus
contains the abortErr result code.
meterLevel gives the current input signal level. Values returned are
in the range 0 to 255.
totalSamplesToRecord gives an indication of the total to record.
numberOfSamplesRecorded gives an indication of how many samples have been
recorded out of the total to record.
totalMsecsToRecord gives an indication of the total time to record
numberOfMsecsRecorded gives an indication of how much time has been recorded
out of the total to record
Returns: an operating system Error Code.
noErr (0) No error
siBadSoundInDevice (-221) Invalid sound input device