Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback improvements #9

Closed
ziggi opened this issue Mar 18, 2016 · 0 comments
Closed

Playback improvements #9

ziggi opened this issue Mar 18, 2016 · 0 comments

Comments

@ziggi
Copy link
Owner

ziggi commented Mar 18, 2016

General improvements

http://forum.sa-mp.com/showpost.php?p=3673241&postcount=2614

  • Create class CRecording with Load method. This method load recording file from disk into memory and returning pointer or just returning pointer if file already in memory.

New functions

native FCNPC_LoadPlayingPlayback(file[]);
native FCNPC_UnloadPlayingPlayback(recordid);
native FCNPC_SetPlayingPlaybackPath(npcid, path[]);
native FCNPC_GetPlayingPlaybackPath(npcid, path[], const size = sizeof(path));

Updated functions

native FCNPC_StartPlayingPlayback(npcid, file[] = "", recordid = INVALID_RECORD_ID, bool:auto_unload = false);

New callbacks

forward FCNPC_OnFinishMovePath(npcid, pathid);
forward FCNPC_OnFinishMovePathPoint(npcid, pathid, pointid);
@ziggi ziggi added this to the FCNPC v1.1 milestone Mar 18, 2016
@ziggi ziggi removed this from the FCNPC v2.0 milestone Sep 28, 2016
ziggi added a commit that referenced this issue Oct 13, 2016
Keep record files into the memory.

New functions:
native FCNPC_LoadPlayingPlayback(file[]);
native FCNPC_UnloadPlayingPlayback(playbackid);
native FCNPC_SetPlayingPlaybackPath(npcid, path[]);
native FCNPC_GetPlayingPlaybackPath(npcid, path[], const size =
sizeof(path));

Updated functions:
native FCNPC_StartPlayingPlayback(npcid, file[] = "", playbackid = -1,
bool:auto_unload = false);
@ziggi ziggi closed this as completed Oct 13, 2016
@iMarllun iMarllun mentioned this issue May 23, 2020
@Mancek Mancek mentioned this issue Jun 22, 2020
@Hamiiziii Hamiiziii mentioned this issue Jul 25, 2020
@savvin-dev savvin-dev mentioned this issue Mar 15, 2022
@Athul-sk Athul-sk mentioned this issue Apr 6, 2024
@PateeerQ PateeerQ mentioned this issue Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant