Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: InitRecord"Without"Playback ASIO?

$
0
0
Ah, didn´t know that, thanks.

Another thing though, about the - e.GetAsInterleavedSamples();

Can you make an example of that one?

As i can´t get how to use it correctly, as it want´s you to write: e.GetAsInterleavedSamples(ByteArray);

The problem with that is, you don´t know the size of the byte array, so you have to do like this:

var bytearray = new byte[e.GetAsInterleavedSamples().Length);

e.GetAsInterleavedSamples();

Which is wrong, as i get an "error" saying that you can improve performance by only using: e.GetAsInterleavedSamples(bytarray); then reusing the bytearray.

I am a bit confused how to get that working.

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images