Returns the minimum buffer size required to record with the given parameters -1 if the implementation was unable to query the hardware for its output properties -2 if the recording parameters are not supported by the hardware, or an invalid parameter was passed
GetNotificationMarkerPositionAsInt
Returns the notification marker position expressed in frames (Frame size = No Channels * (1 for 8bit, 2 for 16 bit))
GetPositionNotificationPeriodAsInt
Returns the notification update period expressed in frames.
GetRecordingStateAsInt
Returns the recording state of the AudioRecord instance. RECORDSTATE_RECORDING = 3; RECORDSTATE_STOPPED = 1;
GetSampleRateAsInt
Returns the configured audio data sample rate in Hz
GetStateAsInt
Returns the state of the AudioRecord instance. STATE_INITIALIZED = 1 STATE_UNINITIALIZED = 0
AudioSource - Same as MediaRecorder SampleRate - 44100 is standard and should work on all devices,22050,16000.11025 and 8000 may work on some Channel config - Mono or Stereo depending on available hardware, Mono is the safe option Audio format, 8 or 16 bit encoding Buffer size - the total size (in bytes) of the buffer where audio data is written to during the recording. New audio data can be read from this buffer in smaller chunks than this size. See getMinBufferSize(int, int, int) to determine the minimum required buffer size for the successful creation of an AudioRecord instance. Using values smaller than getMinBufferSize() will result in an initialization failure.
ReadBytes (offsetAsInt, datasizeAsInt) AsByte()
Reads audio data from the audio hardware for recording into a buffer.
ReadShort (offsetAsInt, datasizeAsInt) AsShort()
Reads audio data from the audio hardware for recording into a buffer.
RECORDSTATE_RECORDINGAsInt
RECORDSTATE_STOPPEDAsInt
release
Releases the native AudioRecord resources.
SetNotificationMarkerPosition (framesAsInt) AsInt
Sets the notification marker position expressed in frames if set you need a subroutine AudioRecord_MarkerReached to be called returns 0 = SUCCESS -3 = ERROR_INVALID_OPERATION
SetPositionNotificationPeriod (framesAsInt) AsInt
Sets the notification period expressed in frames. if set you need a subroutine AudioRecord_PeriodPassed to be called 0 = SUCCESS -3 = ERROR_INVALID_OPERATION