mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
start modularization
This commit is contained in:
18
modulation/stereo_encoder.h
Normal file
18
modulation/stereo_encoder.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include "../dsp/oscillator.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t multiplier;
|
||||
Oscillator* osc;
|
||||
uint8_t polar;
|
||||
float mono_volume;
|
||||
float pilot_volume;
|
||||
float stereo_volume;
|
||||
} StereoEncoder;
|
||||
|
||||
void init_stereo_encoder(StereoEncoder *st, uint8_t multiplier, Oscillator *osc, uint8_t polar, float mono_volume, float pilot_volume, float stereo_volume);
|
||||
|
||||
float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right);
|
||||
Reference in New Issue
Block a user