OXYGENHUB
◆ main x16-emulator / src / audio.h
393 B · Objective-C · last changed main: while the CPU waits in WAI, step the machine to its next event at once 14 days ago source blame history raw
1
// Commander X16 Emulator
2
// Copyright (c) 2020 Frank van den Hoef
3
// All rights reserved. License: 2-clause BSD
4
5
#pragma once
6
7
#include <SDL.h>
8
9
#define AUDIO_SAMPLERATE (25000000 / 512)
10
11
void audio_init(const char *dev_name, int num_audio_buffers);
12
void audio_close(void);
13
void audio_step(int cpu_clocks);
14
uint32_t audio_clocks_to_render(void);
15
void audio_render();
16
17
void audio_usage(void);