102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
movies_private.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <SDL3/SDL.h>

Go to the source code of this file.

Enumerations

enum  dttr_movie_result { DTTR_MOVIE_PLAYING = 0 , DTTR_MOVIE_ENDED = 1 , DTTR_MOVIE_ESCAPE = 2 , DTTR_MOVIE_QUIT = 3 }

Functions

void dttr_movies_init ()
void dttr_movies_cleanup ()
void dttr_movies_start (const char *path)
void dttr_movies_tick ()
bool dttr_movies_handle_event (const SDL_Event *event)
dttr_movie_result dttr_movies_stop ()
bool dttr_movies_is_playing ()

Enumeration Type Documentation

◆ dttr_movie_result

Enumerator
DTTR_MOVIE_PLAYING 
DTTR_MOVIE_ENDED 
DTTR_MOVIE_ESCAPE 
DTTR_MOVIE_QUIT 

Definition at line 9 of file movies_private.h.

Function Documentation

◆ dttr_movies_cleanup()

void dttr_movies_cleanup ( )

Definition at line 635 of file movies.c.

References audio_frame, close_movie(), DTTR_LOG_INFO, packet, and video_frame.

Referenced by cleanup_runtime().

◆ dttr_movies_handle_event()

bool dttr_movies_handle_event ( const SDL_Event * event)

◆ dttr_movies_init()

void dttr_movies_init ( )

Definition at line 606 of file movies.c.

References audio_frame, DTTR_LOG_ERROR, packet, and video_frame.

Referenced by install_required_sidecar_hooks().

◆ dttr_movies_is_playing()

bool dttr_movies_is_playing ( )

◆ dttr_movies_start()

◆ dttr_movies_stop()

dttr_movie_result dttr_movies_stop ( )

◆ dttr_movies_tick()