Csound Csound-dev Csound-tekno Search About

[Csnd] Buffer underrun in real-time

Date2023-12-13 14:13
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] Buffer underrun in real-time
Ciao a tutti!

I don't know if this has already been discussed...

At the launch of a csd that houses two microphones, various audio files and an UDO (aerosound.csd),
On the CsoundQt Console (Version 0.9.6) on MacBook Pro (Venture),
These warnings appear to me, even several times after the Run Csound:

WARNING: Buffer underrun in real-time audio output
WARNING: Buffer overrun in real-time audio input

What remedies do you suggest?
Thank you for any help,
Enrico

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2023-12-13 14:34
FromTarmo Johannes
SubjectRe: [Csnd] Buffer underrun in real-time
Hi!

Since you say two microphones, you probably need quite low latency output?
If you don't hear clicks in the audio, I would just live with the warnings.

Otherwise I think you should experiment with different ksmps and buffer sizes (-b and -B).
Try setting ksmps bigger (like 32, 64, 128), if it does not affect your audio result.

Try setting Csound internal (-b) and hardware (-B) buffers bigger, either in the <CsOptions>  or in CsoundQt Configure->Advanced
Start with -b 256 -B 1024 and after that try to rise them (like to -b 1024 -B 4096). Of course, the bigger buffers, the bigger latency.

You can try also different audio module. Jack is reported to be best on MacOS https://jackaudio.org/downloads/
Or you can try with no audio output (-+rtaudio=null). If you still have the warnings, it is you Csound code that you need to optimize.


By the way, your CsoundQt is pretty old. I suggest to download and try:
This does not solve your warnings buffer underrun warnings though, as this is Csound specific.

I hope that is of any help!

tarmo

Kontakt Enrico Francioni (<00000005323c8739-dmarc-request@listserv.heanet.ie>) kirjutas kuupäeval K, 13. detsember 2023 kell 16:13:
Ciao a tutti!

I don't know if this has already been discussed...

At the launch of a csd that houses two microphones, various audio files and an UDO (aerosound.csd),
On the CsoundQt Console (Version 0.9.6) on MacBook Pro (Venture),
These warnings appear to me, even several times after the Run Csound:

WARNING: Buffer underrun in real-time audio output
WARNING: Buffer overrun in real-time audio input

What remedies do you suggest?
Thank you for any help,
Enrico

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here