private void update_audio() { IntPtr src = IntPtr.Zero; LibGPGX.gpgx_get_audio(ref nsamp, ref src); if (src != IntPtr.Zero) { Marshal.Copy(src, samples, 0, nsamp * 2); } }
private void update_audio() { IntPtr src = IntPtr.Zero; LibGPGX.gpgx_get_audio(ref nsamp, ref src); if (src != IntPtr.Zero) { Marshal.Copy(src, samples, 0, nsamp * 2); } }