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

New Post: AsioOut - AsioSampleType (Int32LSB24) and channel question

$
0
0
hi!

Thanks for the very quick response. I've copied the Convertor and changed what you have suggested. Now that the "Int32LSB24 is not yet supported" Exception isn't thrown anymore I have a new problem. I get an exception during the AsioOut.Init-method. More specificly: The function CreateBuffers(int, int, bool) from ASIODriverExt.cs throws the Exception Error code [ASE_InvalidMode] while calling ASIO method <createBuffers>,
unsafe
            {
                fixed (ASIOBufferInfo* infos = &bufferInfos[0])
                {
                    IntPtr pOutputBufferInfos = new IntPtr(infos);

                    // Create the ASIO Buffers with the callbacks
                    driver.createBuffers(pOutputBufferInfos, nbTotalChannels, bufferSize, ref callbacks);
                }
            }
bufferInfos.length == 64
nbTotalChannels == 64 (32 input, 32 output)
bufferSize == 256 (at first it was 800, but then I looked at the bufferSize when using the other soundcard. there the bufferSize was 256, so I changed it to 256 using the AsioSettingsDialog)

In an ASIO SDK documention I found
ASIOError ASIOCreateBuffers(ASIOBufferInfo *bufferInfos, long numChannels, long bufferSize, ASIOCallbacks *callbacks);
If not enough memory is available ASE_NoMemory will be returned. If no input/output is present
ASE_NotPresent will be returned. If bufferSize is not supported, or one or more of the bufferInfos
elements contain invalid settings, ASE_InvalidMode will be returned.
Maybe the 256 are wrong, but I've chosen this value from a DropDownList from the AsioSettingsDialog.



The other thing with the ChannelOffset seems to work. :)


Stefan

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>