-
public class MediaDataRecordCreated by dhiman on 8/27/2017.
-
-
Method Summary
Modifier and Type Method Description static MediaDataRecordgetMediaRecorder(SIPProvider provider)booleanisRecorderInitialized()CallConstants.AudioSampleRategetSampleRate()voidsetSampleRate(CallConstants.AudioSampleRate sampleRate)synchronized intread(Array<short> buffer, int offset, int length)Reads audio data from the recording device into the provided buffer.This method ensures the recorder is initialized, handles buffer management,and performs internal 10ms chunk reading until the requested length is satisfied. intread10ms(Array<short> buffer)synchronized intgetMoreCrispVoice(Array<short> buffer, int offset, int length)voidstartRecorder()voidstopRecorder()synchronized voidreInitializeRecorder()voidreleaseRecorder()-
-
Method Detail
-
getMediaRecorder
static MediaDataRecord getMediaRecorder(SIPProvider provider)
-
isRecorderInitialized
boolean isRecorderInitialized()
-
getSampleRate
CallConstants.AudioSampleRate getSampleRate()
-
setSampleRate
void setSampleRate(CallConstants.AudioSampleRate sampleRate)
-
read
synchronized int read(Array<short> buffer, int offset, int length)
Reads audio data from the recording device into the provided buffer.This method ensures the recorder is initialized, handles buffer management,and performs internal 10ms chunk reading until the requested length is satisfied.
- Parameters:
buffer- the array to store the recorded audio data.offset- the start offset in the destination array{@code buffer}.length- the number of short samples to read.
-
getMoreCrispVoice
synchronized int getMoreCrispVoice(Array<short> buffer, int offset, int length)
-
startRecorder
void startRecorder()
-
stopRecorder
void stopRecorder()
-
reInitializeRecorder
synchronized void reInitializeRecorder()
-
releaseRecorder
void releaseRecorder()
-
-
-
-