looper/backends/playback/zsm/x16emu/vera_pcm.h

21 lines
560 B
C
Raw Normal View History

2024-08-08 13:12:37 -07:00
// 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);
uint32_t pcm_fifo_avail(void);
bool pcm_is_fifo_almost_empty(void);
2024-10-16 13:06:40 -07:00
uint32_t pcm_fifo_cnt(void);
uint32_t pcm_sample_size(void);