Ejemplo n.º 1
0
        /* registers the callback func with the C code */
        private bool register_audio_callback()
        {
            if (audio_callback == null)
            {
                audio_callback = new SHAKEAudioCB(AudioCB_internal);
            }
            else
            {
                audio_callback = null;
            }

            // NOTE that this is the STDCALL variation of the normal cdecl callback,
            // because the .NET Compact Framework doesn't support C delegates with non-stdcall
            // calling conventions. On XP, .NET 2.0 and above can handle it though.
            shake_register_audio_callback_STDCALL(dev, audio_callback);
            return true;
        }
Ejemplo n.º 2
0
 private static extern int shake_register_audio_callback_STDCALL(IntPtr dev, SHAKEAudioCB callback);