-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsgf.h
More file actions
39 lines (23 loc) · 862 Bytes
/
msgf.h
File metadata and controls
39 lines (23 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Copyright (c) 2021 Hasebe Masahiko. Released under the MIT license */
#ifndef msgf_h
#define msgf_h
/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#define MAX_PART_NUM 1
#define MAX_BUFFER_SIZE 1024
#define SAMPLING_FREQ 44100.0
#define AUDIO_FRAME_PER_CONTROL 128
#define MAX_TONE_COUNT 3
typedef struct Msgf Msgf;
struct Msgf *rust_msgf_new(void);
void rust_recieve_midi_message(struct Msgf *rust_msgf, uint8_t dt1, uint8_t dt2, uint8_t dt3);
void rust_process(struct Msgf *rust_msgf,
float (*abuf_l)[MAX_BUFFER_SIZE],
float (*abuf_r)[MAX_BUFFER_SIZE],
uint32_t in_number_frames);
void say_hello(void);
void rust_msgf_destroy(struct Msgf *rust_msgf);
#endif /* msgf_h */