diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-11-07 15:20:41 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-11-07 15:20:41 +0300 |
| commit | 11e5f50717af85f775491a5d2a2867a7e0f9c45f (patch) | |
| tree | 1e58061d7bcd7499018f53357243ebd13daeffc4 /src/sounds.h | |
| parent | 5d74f4437de84f784e0d972be03da03505154eb7 (diff) | |
Improve the wave screen
Diffstat (limited to 'src/sounds.h')
| -rw-r--r-- | src/sounds.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/sounds.h b/src/sounds.h index 639ce80..0a61487 100644 --- a/src/sounds.h +++ b/src/sounds.h @@ -27,51 +27,6 @@ typedef struct { WaveData *wave_data; } SoundThreadMeta; -typedef enum { - ENV_OFF, - ENV_ATTACK, - ENV_DECAY, - ENV_SUSTAIN, - ENV_RELEASE, -} EnvelopeState; - -typedef struct { - int attack_time; - int decay_time; - float sustain_level; - int release_time; -} EnvelopeParams; - -typedef struct { - EnvelopeState state; - int counter; - float current_inc; - float release_value; - EnvelopeParams params; -} Envelope; - -typedef struct { - bool active; - float freq; - float phase; - float phase_inc; - Envelope envelope; -} SynthVoice; - -typedef struct { - SynthVoice *buffer; - size_t size; -} SynthVoices; - -typedef struct { - OscilatorType oscilator_type; - float master_volume; - EnvelopeParams envelope_params; - float last_freq; -} SynthParams; - -typedef float (*OscilatorFunc)(float phase); - void *sound_thread_start(void *ptr); int set_hw_params(snd_pcm_t *pcm); |
