g0orx / linhpsdr

Linux HPSDR
GNU General Public License v3.0
74 stars 45 forks source link

Fix C type errors in audio.c #127

Open fweimer-rh opened 9 months ago

fweimer-rh commented 9 months ago

Explicitly cast gint16 * result of g_new to float * in audio_open_input. Return NULL from mic_read_thread because the function returns void *.

This avoids build failures with current compilers which treat these C type errors as errors.

Related to:

fweimer-rh commented 9 months ago

Please note that I'm not entirely sure of the g_new change. Is the size of the array correct?