ilan Expert Licensed User Longtime User May 23, 2016 #1 hi i am using AudioStreamer Object to record an incoming call and i am adding the buffer to a list like this: Code: Copy 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? Code: Copy 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?
hi i am using AudioStreamer Object to record an incoming call and i am adding the buffer to a list like this: Code: Copy 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? Code: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User May 23, 2016 #2 It is better to directly write it to a file. Otherwise you may run out of memory. If the process didn't crash then the list didn't reach any limit. Upvote 0
It is better to directly write it to a file. Otherwise you may run out of memory. If the process didn't crash then the list didn't reach any limit.