mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
18 lines
443 B
C
18 lines
443 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "../dsp/oscillator.h"
|
|
|
|
typedef struct
|
|
{
|
|
uint8_t multiplier;
|
|
Oscillator* osc;
|
|
float mono_volume;
|
|
float pilot_volume;
|
|
float stereo_volume;
|
|
} StereoEncoder;
|
|
|
|
void init_stereo_encoder(StereoEncoder *st, uint8_t multiplier, Oscillator *osc, float mono_volume, float pilot_volume, float stereo_volume);
|
|
|
|
float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right);
|