libmsx
C library for MSX
Loading...
Searching...
No Matches
audio_buf.h File Reference

Unified sound-chip buffer of the libmsx audio replayer. More...

#include "memfile.h"
#include <stdint.h>
+ Include dependency graph for audio_buf.h:

Go to the source code of this file.

Functions

void audio_buf_init (void)
 MSX Initialize the buffer for the libmsx audio replayer.
 
void audio_buf_clear (void)
 MSX Clear the internal FIFO of the libmsx audio replayer.
 
void audio_buf_put (uint8_t priority, uint8_t cmd, uint8_t val)
 MSX Put requests to the internal FIFO of the libmsx audio replayer.
 
uint8_t audio_buf_get (uint8_t cmd)
 MSX Return the latest value of the specified command.
 
void audio_buf_restore (void)
 MSX Put a request into the internal FIFO to restore the cached value.
 
void audio_buf_play (void)
 MSX Process all requests in the internal FIFO of the libmsx audio replayer.
 
void audio_buf_stop (void)
 MSX Stop (Pause) playing sound on PSG, SCC/SCC+, and OPLL.
 

Variables

uint8_t audio_buf_cache [256]
 The latest value of each command.
 

Detailed Description

Unified sound-chip buffer of the libmsx audio replayer.

Definition in file audio_buf.h.