This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/jukebox/composite.h
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

37 lines
683 B
C

#pragma once
#include <stddef.h>
#include "./effect.h"
#include "./format.h"
struct jukebox_composite_t;
typedef struct jukebox_composite_t jukebox_composite_t;
jukebox_composite_t* /* OWNERSHIP */
jukebox_composite_new(
const jukebox_format_t* format,
size_t reserve
);
void
jukebox_composite_delete(
jukebox_composite_t* compo /* OWNERSHIP */
);
void
jukebox_composite_add_effect(
jukebox_composite_t* compo, /* must be stopped */
jukebox_effect_t* effect /* must be alive while the comp is alive */
);
void
jukebox_composite_play(
jukebox_composite_t* compo
);
void
jukebox_composite_stop(
jukebox_composite_t* compo
);