public TrueAudioNextDevice(OpenCLDevice openCLDevice, int frameSize, int irSize, int order, int maxSources)
        {
            var deviceSettings = new TrueAudioNextDeviceSettings {
            };

            deviceSettings.frameSize  = frameSize;
            deviceSettings.irSize     = irSize;
            deviceSettings.order      = order;
            deviceSettings.maxSources = maxSources;

            var status = API.iplTrueAudioNextDeviceCreate(openCLDevice.Get(), ref deviceSettings, out mTrueAudioNextDevice);

            if (status != Error.Success)
            {
                throw new Exception(string.Format("Unable to create TrueAudio Next device. [{0}]", status));
            }
        }
Пример #2
0
 public static extern Error iplTrueAudioNextDeviceCreate(IntPtr openCLDevice, ref TrueAudioNextDeviceSettings settings, out IntPtr tanDevice);