mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-22 23:18:01 +03:00
These HLLs play .mpg movie files (later games use .alm file extension, but the format is the same, i.e. MPEG-PS) that contain MPEG1 video and MP2 audio streams. pl_mpeg.h is the PL_MPEG library (https://github.com/phoboslab/pl_mpeg) imported from commit 5aeef4d07593be1960a0e4c7fe204809cfae30bd. This adds a few mixer functions (mixer_stream_*) for playing custom audio streams under the master mixer.
32 lines
1.2 KiB
C
32 lines
1.2 KiB
C
/* Copyright (C) 2023 kichikuou <KichikuouChrome@gmail.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef SYSTEM4_MOVIE_H
|
|
#define SYSTEM4_MOVIE_H
|
|
|
|
struct movie_context;
|
|
struct sact_sprite;
|
|
|
|
struct movie_context *movie_load(const char *filename);
|
|
void movie_free(struct movie_context *mc);
|
|
bool movie_play(struct movie_context *mc);
|
|
bool movie_draw(struct movie_context *mc, struct sact_sprite *sprite);
|
|
bool movie_is_end(struct movie_context *mc);
|
|
int movie_get_position(struct movie_context *mc);
|
|
bool movie_set_volume(struct movie_context *mc, int volume /* 0-100 */);
|
|
|
|
#endif /* SYSTEM4_MOVIE_H */
|