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>
|
|
|
|
|
2024-10-15 13:34:42 -07:00
|
|
|
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);
|