-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
6,372 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.