H Horst Member Licensed User Longtime User Oct 5, 2017 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Oct 8, 2017 #2 You can use ByteConverter.ArrayCopy to copy slices from the large array into smaller arrays. Upvote 0
H Horst Member Licensed User Longtime User Oct 9, 2017 #3 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
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!