0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

fix frame size

This commit is contained in:
2025-03-10 20:17:40 +01:00
parent 0b3e2faba5
commit 3afcbd232a

View File

@@ -267,7 +267,7 @@ done_parsing_opts:
fm_rds_get_frames(mpx_buffer, NUM_MPX_FRAMES_IN);
/* num_bytes = audio frames( * channels) * bytes per sample */
if (pa_simple_write(device, mpx_buffer, NUM_MPX_FRAMES_IN * sizeof(int16_t), &pulse_error) != 0) {
if (pa_simple_write(device, mpx_buffer, NUM_MPX_FRAMES_IN * sizeof(float), &pulse_error) != 0) {
fprintf(stderr, "Error: could not play audio. (%s : %d)\n", pa_strerror(pulse_error), pulse_error);
break;
}