In the library post "Audio library v1.5 - New AudioStreamer object", it states
If I happen to be correct that AudioRecord is used, how can I access the underlying getMinBufferSize? And is this the size used in AudioRecord's constructor?
As to AudioStreamer's PlayerBufferSize property, is it equivalent to AudioTrack's getMinBufferSize?
AudioRecord encoding formats: https://developer.android.com/reference/android/media/AudioRecord.html#getAudioFormat()
AudioTrack encoding formats: https://developer.android.com/reference/android/media/AudioTrack.html#getAudioFormat()
MediaRecorder encoding formats: https://developer.android.com/reference/android/media/MediaRecorder.AudioEncoder
AudioRecord getMinBufferSize: https://developer.android.com/reference/android/media/AudioRecord.html#getMinBufferSize(int, int, int)
AudioRecord constructor: https://developer.android.com/reference/android/media/AudioRecord.html#AudioRecord(int, int, int, int, int)
AudioTrack getMinBufferSize: https://developer.android.com/refer...dioTrack.html#getMinBufferSize(int, int, int)
I'm not 100% convinced that MediaRecorder is used to record the audio, but that instead AudioRecord is used. The only reason I'm speculating for AudioRecord is that AudioRecord supports the same encodings as AudioTrack, but MediaRecorder seems to support none of the encodings that AudioTrack understands.The purpose of AudioStreamer is to make it simple to stream audio from the microphone and to the speakers. Internally it is based on AudioTrack and MediaRecorder.
If I happen to be correct that AudioRecord is used, how can I access the underlying getMinBufferSize? And is this the size used in AudioRecord's constructor?
As to AudioStreamer's PlayerBufferSize property, is it equivalent to AudioTrack's getMinBufferSize?
AudioRecord encoding formats: https://developer.android.com/reference/android/media/AudioRecord.html#getAudioFormat()
AudioTrack encoding formats: https://developer.android.com/reference/android/media/AudioTrack.html#getAudioFormat()
MediaRecorder encoding formats: https://developer.android.com/reference/android/media/MediaRecorder.AudioEncoder
AudioRecord getMinBufferSize: https://developer.android.com/reference/android/media/AudioRecord.html#getMinBufferSize(int, int, int)
AudioRecord constructor: https://developer.android.com/reference/android/media/AudioRecord.html#AudioRecord(int, int, int, int, int)
AudioTrack getMinBufferSize: https://developer.android.com/refer...dioTrack.html#getMinBufferSize(int, int, int)