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