Android Question maximal recording size?? (audio streamer obj)

ilan

Expert
Licensed User
Longtime User
hi

i am using AudioStreamer Object to record an incoming call and i am adding the buffer to a list like this:

B4X:
Sub streamer_RecordBuffer (Buffer() As Byte)
   'collect the recording data
   buffers.Add(Buffer)
End Sub

the last call i had was about 47 minutes but recording was about 33 minutes. is there any limit for audio recording or maybe the list could not hold more bytes?

should i maybe write directly to the wave file like this?

B4X:
Sub streamer_RecordBuffer (Buffer() As Byte)
    If recording Then output.WriteBytes(Buffer, 0, Buffer.Length)
    'the above check is required as the last message will arrive after we call StopRecording.
End Sub

what is the right approach?
 
Top