OXYGENHUB
◆ rrdc-perf enhanced-x16-emulator / src / wav_recorder.h
536 B · Objective-C · last changed chore(): initial commit 25 days ago source blame history raw
9120e874 Andy McCall 1
// Commander X16 Emulator
2
// Copyright (c) 2022 Stephen Horn
3
// All rights reserved. License: 2-clause BSD
4
5
#ifndef WAV_RECORDER_H
6
#define WAV_RECORDER_H
7
8
#include <stdint.h>
9
10
typedef enum {
11
	RECORD_WAV_PAUSE = 0,
12
	RECORD_WAV_RECORD,
13
	RECORD_WAV_AUTOSTART,
14
} wav_recorder_command_t;
15
16
void wav_recorder_shutdown();
17
void wav_recorder_process(const int16_t *samples, const int num_samples);
18
19
void    wav_recorder_set(wav_recorder_command_t command);
20
uint8_t wav_recorder_get_state();
21
22
void wav_recorder_set_path(const char *path);
23
24
#endif