0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00

rename bs412 names and also add debug there, convert to tabs, remove 38 khz min for mpx dev and change bs412 gain reduction logic

This commit is contained in:
2025-04-30 20:00:00 +02:00
parent 92a358bfdb
commit 0f74e8e1b7
4 changed files with 33 additions and 21 deletions

View File

@@ -41,10 +41,10 @@ int read_PulseInputDevice(PulseInputDevice* dev, float* buffer, size_t size) {
void free_PulseInputDevice(PulseInputDevice* dev) {
if (dev->dev && dev->initialized) pa_simple_free(dev->dev);
free(dev->app_name);
free(dev->stream_name);
free(dev->device);
dev->initialized = 0;
free(dev->app_name);
free(dev->stream_name);
free(dev->device);
dev->initialized = 0;
}
int init_PulseOutputDevice(PulseOutputDevice* dev, int sample_rate, int channels, char* app_name, char *stream_name, char* device, pa_buffer_attr* buffer_attr) {
@@ -88,8 +88,8 @@ int write_PulseOutputDevice(PulseOutputDevice* dev, float* buffer, size_t size)
void free_PulseOutputDevice(PulseOutputDevice* dev) {
if (dev->dev && dev->initialized) pa_simple_free(dev->dev);
free(dev->app_name);
free(dev->stream_name);
free(dev->device);
dev->initialized = 0;
free(dev->app_name);
free(dev->stream_name);
free(dev->device);
dev->initialized = 0;
}