From 558c90a0667f6c86eb310794b53583c3146ceefc Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 1 Jan 2025 18:51:50 +0100 Subject: [PATCH] huh --- src/crosby_stereo_coder.c | 4 ++-- src/sca_mod.c | 2 +- src/ssb_stereo_coder.c | 4 ++-- src/stereo_coder.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/crosby_stereo_coder.c b/src/crosby_stereo_coder.c index 5530da3..86c10b6 100644 --- a/src/crosby_stereo_coder.c +++ b/src/crosby_stereo_coder.c @@ -63,12 +63,12 @@ int main() { printf("CrosbySTCode : Stereo encoder (using the crosby system) made by radio95 (with help of ChatGPT and Claude, thanks!)\n"); // Define formats and buffer atributes pa_sample_spec stereo_format = { - .format = PA_SAMPLE_FLOAT32NE, //Float32 NE, or Float32 Native Endian, the float in c uses the endianess of your pc, or native endian, and float is float32, and double is float64 + .format = PA_SAMPLE_FLOAT32LE, .channels = 2, .rate = SAMPLE_RATE // Same sample rate makes it easy, leave the resampling to pipewire, it should know better }; pa_sample_spec mono_format = { - .format = PA_SAMPLE_FLOAT32NE, + .format = PA_SAMPLE_FLOAT32LE, .channels = 1, .rate = SAMPLE_RATE }; diff --git a/src/sca_mod.c b/src/sca_mod.c index 1a080b7..25e7404 100644 --- a/src/sca_mod.c +++ b/src/sca_mod.c @@ -57,7 +57,7 @@ int main() { // Define formats and buffer atributes pa_sample_spec audio_format = { - .format = PA_SAMPLE_FLOAT32NE, //Float32 NE, or Float32 Native Endian, the float in c uses the endianess of your pc, or native endian, and float is float32, and double is float64 + .format = PA_SAMPLE_FLOAT32LE, .channels = 1, .rate = SAMPLE_RATE // Same sample rate makes it easy, leave the resampling to pipewire, it should know better }; diff --git a/src/ssb_stereo_coder.c b/src/ssb_stereo_coder.c index 65a3024..4de4915 100644 --- a/src/ssb_stereo_coder.c +++ b/src/ssb_stereo_coder.c @@ -65,12 +65,12 @@ int main() { printf("SSB-STCode : Stereo encoder made by radio95 (with help of ChatGPT and Claude, thanks!)\n"); // Define formats and buffer atributes pa_sample_spec stereo_format = { - .format = PA_SAMPLE_FLOAT32NE, //Float32 NE, or Float32 Native Endian, the float in c uses the endianess of your pc, or native endian, and float is float32, and double is float64 + .format = PA_SAMPLE_FLOAT32LE, .channels = 2, .rate = SAMPLE_RATE // Same sample rate makes it easy, leave the resampling to pipewire, it should know better }; pa_sample_spec mono_format = { - .format = PA_SAMPLE_FLOAT32NE, + .format = PA_SAMPLE_FLOAT32LE, .channels = 1, .rate = SAMPLE_RATE }; diff --git a/src/stereo_coder.c b/src/stereo_coder.c index 22d5119..9fd0c53 100644 --- a/src/stereo_coder.c +++ b/src/stereo_coder.c @@ -63,12 +63,12 @@ int main() { printf("STCode : Stereo encoder made by radio95 (with help of ChatGPT and Claude, thanks!)\n"); // Define formats and buffer atributes pa_sample_spec stereo_format = { - .format = PA_SAMPLE_FLOAT32NE, //Float32 NE, or Float32 Native Endian, the float in c uses the endianess of your pc, or native endian, and float is float32, and double is float64 + .format = PA_SAMPLE_FLOAT32LE, .channels = 2, .rate = SAMPLE_RATE // Same sample rate makes it easy, leave the resampling to pipewire, it should know better }; pa_sample_spec mono_format = { - .format = PA_SAMPLE_FLOAT32NE, + .format = PA_SAMPLE_FLOAT32LE, .channels = 1, .rate = SAMPLE_RATE };