35 if (!sound_init_error)
58BOOL
Video_OpenMovieFile(HWND hwnd,
char const *movie_path, IDirectDraw7 *unused_ddraw,
char use_alt_video_rect)
92 if (playback_mode_error)
113 if (sound_init_error)
123 int32_t playback_init_error =
128 if (playback_init_error)
240 if (!avi_initialized)
259 if (avi_play_started)
270 if (playback_previously_observed)
273 else if (playback_previously_observed)
void Debug_Log(char const *category, char const *message)
#define Video_PlayMovieLoop_GetAsyncKeyStateThunk
int32_t Movie_GetCurrentFrame(int32_t movie_handle)
int32_t Movie_GetSoundRate(int32_t movie_handle)
int32_t Movie_GetSoundPrecision(int32_t movie_handle)
int32_t Movie_SetSyncAdjust(int32_t movie_handle, int32_t sound_handle, int32_t sync_adjust)
int32_t Movie_GetTotalFrames(int32_t movie_handle)
int32_t Movie_GetYSize(int32_t movie_handle)
int32_t Movie_GetXSize(int32_t movie_handle)
int32_t Movie_GetSoundChannels(int32_t movie_handle)
int32_t Video_GetMovieCurrentFrame(int32_t movie_handle)
void Video_ShutdownPlayerSystems(void)
int32_t Video_GetMovieTotalFrames(int32_t movie_handle)
BOOL Video_OpenMovieFile(HWND hwnd, char const *movie_path, IDirectDraw7 *unused_ddraw, char use_alt_video_rect)
void Video_PlayMovieFile(char const *movie_path, char use_alt_video_rect)
int32_t Video_GetMovieYSize(int32_t movie_handle)
void Video_PlayMovieIntro(int32_t movie_index)
int32_t Video_GetMovieSoundPrecision(int32_t movie_handle)
int32_t Video_PlayMovieLoop(void)
int32_t Video_GetMovieSoundChannels(int32_t movie_handle)
BOOL Video_CloseMovieFile(void)
int32_t Video_SetMovieSyncAdjust(int32_t movie_handle, int32_t sound_handle, int32_t sync_adjust)
int32_t Video_GetMovieSoundRate(int32_t movie_handle)
BOOL Video_InitPlayer(HWND hwnd)
int32_t Video_GetMovieXSize(int32_t movie_handle)
int32_t String_FormatCRTString(char *buffer, char const *format,...)
#define g_aviPlaybackStarted
@ VIDEO_PLAYBACK_FINISHED
@ VIDEO_PLAYBACK_CLOSE_REQUESTED
#define VIDEO_SOUND_PRECISION_FOUR_BYTES
#define VIDEO_STREAMER_OPTION_SECONDARY
#define VIDEO_SOUND_SYNC_ADJUSTMENT
@ VIDEO_INTRO_ALTERNATE_RECT
#define VIDEO_OUTPUT_HEIGHT
#define VIDEO_SOUND_BLOCK_SIZE
#define VIDEO_MOVIE_OPEN_OPTION
#define VIDEO_OUTPUT_WIDTH
#define VIDEO_SOUND_CHANNEL_CONFIGURATION
#define VIDEO_SOUND_BUFFER_SIZE
#define VIDEO_STREAMER_OPTION_PRIMARY
int32_t Movie_ReturnPlaybackMode(void)
BOOL Video_PlayAVIFullscreen(void)
int32_t Movie_MapVideo(int32_t surface_handle, int32_t flags)
BOOL Video_OpenAVIFile(char const *movie_path)
int32_t Movie_InitVideoSystem(HWND hwnd, BOOL fullscreen_exclusive)
int32_t Movie_PlayFrame(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle, void *alpha_effects_handle, RECT const *destination_rect, uint32_t codec_frame_arg6, uint32_t codec_frame_arg7, uint32_t codec_start_arg15)
int32_t Movie_InitVideo(int32_t *surface_handle_out, int32_t movie_handle, int32_t movie_width, int32_t movie_height, int32_t mapping_x, int32_t mapping_y, uint32_t mapping_arg7, uint32_t mapping_arg8, uint32_t output_width, uint32_t output_height, BOOL zero_mapping_origin, BOOL preserve_destination_mapping, uint32_t streamer_flags)
int32_t Movie_StopTimer(int32_t movie_handle)
int32_t Movie_InitMoviePlayback(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle)
int32_t Movie_ShutdownVideo(int32_t *surface_handle)
int32_t Movie_ShutdownSound(int32_t *sound_handle)
int32_t Movie_InitMovie(int32_t *movie_handle_out, void(*streaming_callback)(), uint32_t callback_interval_bytes, char const *movie_path, uint32_t buffer_size)
int32_t Movie_ShutdownSoundSystem(void)
int32_t Movie_ShutdownMovie(int32_t *movie_handle)
int32_t Movie_InitPlaybackMode(HWND hwnd, int32_t surface_handle, BOOL force640x480x16, BOOL attach_window_clipper)
int32_t Movie_ShutdownVideoSystem(void)
BOOL Video_InitializeAVIPlayer(char const *window_handle_text)
MCIERROR Video_CloseAVIFile(void)
int32_t Movie_StartTimer(int32_t movie_handle)
MCIERROR Video_ShutdownAVIPlayer(void)
int32_t Movie_InitSoundSystem(HWND hwnd)
int32_t Movie_InitSound(int32_t *sound_handle_out, uint32_t buffer_bytes, uint32_t bytes_per_sample, BOOL precision_is_not_four_bytes, uint32_t block_bytes, int32_t channels, int32_t sample_rate, int32_t sample_precision, uint32_t sound_sync_mode)
BOOL Video_IsAVIPlaying(void)
#define g_videoCurrentRect
#define g_videoSoundHandle
#define g_videoDefaultRect
#define g_videoSkipRequested
#define g_introMovieFileNames
#define g_introMovieUseRplFlags
#define g_videoMovieHandle
#define g_videoSurfaceHandle
#define g_videoPlayerErrorCode