0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 11:33:54 +01:00
This commit is contained in:
2025-01-01 18:51:50 +01:00
parent e2bb7cf6cb
commit 558c90a066
4 changed files with 7 additions and 7 deletions

View File

@@ -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
};