Android Question AudioStreamer - array size greater then buffer size

Horst

Member
Licensed User
Longtime User
Hello,
I created a lot of IR codes and stored them as PCM data files. These arrays are greater than 100000 Bytes and the WRITE function of the AudioStreamer is limited to the PlayerBufferSize. I found 24400 Byte and I know this is a ReadOnly value.
What can I do to send my IR codes by means of the AudioStreamer?
Is it possible to break down the arrays in smaller parts and send these parts subsequently?

Many greetings
Horst
 

Horst

Member
Licensed User
Longtime User
I found that the large arrays seem not to be my problem. If I write my arrays twice in a loop (with a break smaller then 100ms) the following happens: In the case of the first <streamer.Write(gsnd)> only the last part of the array is sent but the second <Write> delivers the complete array. So I think my problem is solved.
Nevertheless I will try your suggestion. Thank you!
 
Upvote 0
Top