summaryrefslogtreecommitdiffstats
path: root/src/synth.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement xas_objectXANTRONIX Development2022-02-271-0/+15
| | | | | | | | | | | | | | | Changes: * Implement xas_object as a base "class" for all playback state objects; allow implementation of start() and stop() methods to control playback * Move code for setting gain, bank slot to a new method, xas_bank_player_select() * Remove code from xas_bank_player_start() setting gain, bank slot * Add xas_object header to each monaural playable object
* Fix square wave duty cycle to 50%XANTRONIX Development2022-02-271-1/+3
|
* Refactor src/synth.cXANTRONIX Development2022-02-271-26/+128
| | | | | | | | | Changes: * Implement xas_synth type to consolidate synthesiser implementation and different tone generator types * Refactor examples/ code to remove duplicate synthesiser code
* Implement xas_audio_format typeXANTRONIX Development2022-02-091-14/+13
| | | | | | | | | | | Changes: * Implement xas_audio_format struct to provide sample size, channels, and sample rate * Refactor argument order for most functions to allow a reasonable reading of argument types, when replacing three separate size_t arguments with one xas_audio_format object
* Shorten he name of XAS_AUDIO_ constantsXANTRONIX Development2022-02-031-1/+1
|
* Channel count first seems...nicer, somehow.XANTRONIX Development2022-02-021-1/+1
|
* This is getting annoyingly close to working...XANTRONIX Development2022-01-311-16/+44
|
* Heh. This works.XANTRONIX Development2022-01-311-12/+0
|
* I really don't like the fact that this compilesXANTRONIX Development2022-01-311-0/+46