Skip to content

Commit

Permalink
start on port
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Aug 21, 2024
1 parent d59b6a5 commit 190533d
Show file tree
Hide file tree
Showing 38 changed files with 6,372 additions and 0 deletions.
31 changes: 31 additions & 0 deletions libs/arcadeshield/arcadesound.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Autogenerated C header file for Arcade sound
#ifndef _JACDAC_SPEC_ARCADE_SOUND_H
#define _JACDAC_SPEC_ARCADE_SOUND_H 1

#define JD_SERVICE_CLASS_ARCADE_SOUND 0x1fc63606

/**
* Argument: samples bytes. Play samples, which are single channel, signed 16-bit little endian values.
*/
#define JD_ARCADE_SOUND_CMD_PLAY 0x80

/**
* Read-write Hz u22.10 (uint32_t). Get or set playback sample rate (in samples per second).
* If you set it, read it back, as the value may be rounded up or down.
*/
#define JD_ARCADE_SOUND_REG_SAMPLE_RATE 0x80

/**
* Constant B uint32_t. The size of the internal audio buffer.
*/
#define JD_ARCADE_SOUND_REG_BUFFER_SIZE 0x180

/**
* Read-only B uint32_t. How much data is still left in the buffer to play.
* Clients should not send more data than `buffer_size - buffer_pending`,
* but can keep the `buffer_pending` as low as they want to ensure low latency
* of audio playback.
*/
#define JD_ARCADE_SOUND_REG_BUFFER_PENDING 0x181

#endif
Loading

0 comments on commit 190533d

Please sign in to comment.