Play sound on Raspberry
-
Hi, Im using a raspberry for a project but I have problem with pulseaudio and I need to use the jack 3.5, is there a way to play audio without pulseaudio?
Edit:
In case the same thing happens to someone, you can solve the error message by reducing the workload caused by the interface, reducing the sampling time that it had in 3 graphs, from 20ms I went to 50ms and it did not exit the application again, I've been in it for 8 days and it still works fine. Thanks -
Hi,
What is the issue that you have ?
Is Pulseaudio working correctly outside of your application ? -
@SGaist Hi, when I use an audio 10 hours or more, I receive the message:
"Assertion 're->data || re->memblock' failed at pulsecore/pstream.c:862, function do_read(). Aborting.".
I have not been able to modify the pulseaudio file and was looking if there is some other way to play audio.
Do you have any ideas that can help me?note: if uninstall pulseaudio the problem is corrected.
-
Can you explain what exactly you are doing with your application ?
-
@SGaist I have a 2s length audio that plays every 10s, plus every 15s. command to save 3 .txt files. If I disable the signals to save the .txt files it takes longer to fail. Also, I am graphing 2 signals every 60ms, I do all of this on a raspberry pi 4
-
How are you playing that sounds ?
-
@Pueablo said in Play sound on Raspberry:
If I disable the signals to save the .txt files it takes longer to fail
That sounds like something failing to close proper resources.
Could you show the slot(s) the "signals" are connected to? -
@Pablo-J-Rogina yes:
connect(this, &Ventilamex_V2::EnviarDatosGraficas, &clsPantallaCongelada, &datos_pantalla_congelada::DATOS_RECIBIDOS);
connect(this, &Ventilamex_V2::EnviarTipoVentilacion, &clsVentilamexNiv, &ventilamex_niv::TIPO_VENTILACION);
connect(this, &Ventilamex_V2::EstadoBloqueoNIV, &clsVentilamexNiv, &ventilamex_niv::ESTADO_BLOQUEO);need anything else?
-
@Pueablo I think @Pablo-J-Rogina wanted to see your slot implementations