looper/backends/playback/zsm/x16emu/vera_pcm.h
2024-09-06 10:06:32 -07:00

17 lines
460 B
C

// Commander X16 Emulator
// Copyright (c) 2020 Frank van den Hoef
// All rights reserved. License: 2-clause BSD
#pragma once
#include <stdint.h>
#include <stdbool.h>
void pcm_reset(void);
void pcm_write_ctrl(uint8_t val);
uint8_t pcm_read_ctrl(void);
void pcm_write_rate(uint8_t val);
uint8_t pcm_read_rate(void);
void pcm_write_fifo(uint8_t val);
void pcm_render(int16_t *buf, unsigned num_samples);
bool pcm_is_fifo_almost_empty(void);