Ejemplo n.º 1
0
        public unsafe Player(Connect connect, object observer)
        {
            IntPtr intptr = new IntPtr(this.GetHashCode());

            refKeeper[intptr] = this;

            libcPlayerHndl = dz_player_new(connect.libcConnectHndl);
            this.connect   = connect;

            onMetaDatacb = (libcPlayer, trackMetadata, userdata) =>
            {
                Debug.WriteLine($"trackMetadata: {trackMetadata}");
            };
            dz_player_set_metadata_cb(libcPlayerHndl, onMetaDatacb);

            onIndexProgress = (libcPlayer, progressMicroseconds, userdata) =>
            {
                OnProgressChanged(progressMicroseconds);
            };
            dz_player_set_index_progress_cb(libcPlayerHndl, onIndexProgress, 1000000);

            onRenderProgress = (libcPlayer, progressMicroseconds, userdata) =>
            {
                OnRenderChanged(progressMicroseconds);
            };
            dz_player_set_render_progress_cb(libcPlayerHndl, onRenderProgress, 1000000);
        }
Ejemplo n.º 2
0
        public unsafe Player(Connect connect, object observer)
        {
            IntPtr intptr = new IntPtr(this.GetHashCode());

            refKeeper[intptr] = this;

            libcPlayerHndl = dz_player_new(connect.libcConnectHndl);
            this.connect   = connect;
        }
Ejemplo n.º 3
0
 static extern unsafe ERRORS dz_player_set_repeat_mode(PLAYER *dzplayer, IntPtr cb, IntPtr userData, QUEUELIST_REPEAT_MODE mode);
Ejemplo n.º 4
0
 static extern unsafe ERRORS dz_player_set_output_volume(PLAYER *dzplayer, IntPtr cb, IntPtr userData, uint volume);
Ejemplo n.º 5
0
 static extern unsafe ERRORS dz_player_stop(PLAYER *dzPlayer, IntPtr cb, IntPtr userdata);
Ejemplo n.º 6
0
 static extern unsafe ERRORS dz_player_resume(PLAYER *dzplayer, IntPtr cb, IntPtr userData);
Ejemplo n.º 7
0
 static extern unsafe ERRORS dz_player_load(PLAYER *dzPlayer, IntPtr cb, IntPtr userdata, string url);
Ejemplo n.º 8
0
 static extern unsafe ERRORS dz_player_play(PLAYER *dzPlayer, IntPtr cb, IntPtr userdata, PLAYER_COMMANDS cmd, int mode);
Ejemplo n.º 9
0
 static extern unsafe ERRORS dz_player_set_render_progress_cb(PLAYER *lpcc, libcPlayerOnRenderProgressCb cb, ulong refreshUs);
Ejemplo n.º 10
0
 static extern unsafe ERRORS dz_player_activate(PLAYER *dzPlayer, IntPtr userdata);
Ejemplo n.º 11
0
 static extern unsafe ERRORS dz_player_play_audioads(PLAYER *lpcc, libcPlayerOnEventCb cb, IntPtr operation_userdata);
Ejemplo n.º 12
0
 static extern unsafe ERRORS dz_player_deactivate(PLAYER *dzplayer, IntPtr cb, IntPtr userData);
Ejemplo n.º 13
0
 static extern unsafe DZ_TRACK_QUALITY dz_player_get_track_quality(PLAYER *lpcc);
Ejemplo n.º 14
0
 static extern unsafe ERRORS dz_player_cache_next(PLAYER *lpcc, libcPlayerOnEventCb cb, IntPtr userData, string trackUrl);
Ejemplo n.º 15
0
 static extern unsafe ERRORS dz_player_load_radio(PLAYER *lpcc, libcPlayerOnEventCb cb, IntPtr userData, string radioType, string radioId);
Ejemplo n.º 16
0
 static extern unsafe ERRORS dz_player_set_track_quality(PLAYER *lpcc, IntPtr cb, IntPtr userData, DZ_TRACK_QUALITY trackQuality);
Ejemplo n.º 17
0
 static extern unsafe ERRORS dz_player_seek(PLAYER *lpcc, IntPtr cb, IntPtr userData, ulong positionMicroseconds);
Ejemplo n.º 18
0
 static extern unsafe ERRORS dz_player_set_event_cb(PLAYER *lpcc, libcPlayerOnEventCb cb);
Ejemplo n.º 19
0
 static extern unsafe ERRORS dz_player_set_metadata_cb(PLAYER *lpcc, libcPlayerOnMetaDataCb cb);