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/effect.h
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

32 lines
524 B
C

#pragma once
#include <stdint.h>
#include "./format.h"
struct jukebox_effect_t;
typedef struct jukebox_effect_t jukebox_effect_t;
typedef struct {
float* ptr;
int32_t frames;
} jukebox_effect_pcm_t;
typedef struct {
void
(*affect)(
jukebox_effect_t* snd,
const jukebox_effect_pcm_t* pcm
);
} jukebox_effect_vtable_t;
struct jukebox_effect_t {
jukebox_effect_vtable_t vtable;
};
void
jukebox_effect_affect(
jukebox_effect_t* snd,
const jukebox_effect_pcm_t* pcm
);