[Csnd] WARNING: Buffer underrun in real-time audio output
| Date | 2018-08-17 19:14 |
| From | fauveboy |
| Subject | [Csnd] WARNING: Buffer underrun in real-time audio output |
Theres an error which occurs, however not always and sometimes very
prominently.
The console reads:
WARNING: Buffer underrun in real-time audio output
how can I avoid this ?
Many thanks,
Joel
--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
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 |
| Date | 2018-08-17 20:16 |
| From | Mauro Giubileo |
| Subject | Re: [Csnd] WARNING: Buffer underrun in real-time audio output |
|
I think that warning means that the audio buffer is fed with data at a lower speed than the data is being read from it, so the DAC doesn't have all the info it requires to generate the correct output in real-time. So, you should optimize better your code for real-time output. As a start point, you could try to increase the ksmps value. Regards, Il 2018-08-17 20:14 fauveboy ha scritto:
|
| Date | 2018-08-17 21:24 |
| From | mskala@ANSUZ.SOOKE.BC.CA |
| Subject | Re: [Csnd] WARNING: Buffer underrun in real-time audio output |
On Fri, 17 Aug 2018, Mauro Giubileo wrote:
> I think that warning means that the audio buffer is fed with data at a lower
> speed than the data is being read from it, so the DAC doesn't have all the
> info it requires to generate the correct output in real-time.
First thing I would try would be increasing the buffer sizes with the -b
and -B options. Quite often your CPU has enough power *overall* to keep
feeding the DAC at full speed, but there are brief peaks during rendering
where it doesn't. A bigger buffer will give it more time over which to
smooth out those peaks - at the cost of increasing the latency between
input and output (which may be relevant if you're controlling Csound in
real time, but probably isn't a problem for score-driven rendering).
--
Matthew Skala
mskala@ansuz.sooke.bc.ca People before principles.
http://ansuz.sooke.bc.ca/
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 |