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

32 lines
524 B
C
Raw Permalink Normal View History

#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
);