Hendrik Schoeman | 26 Jun 2012 00:13
Favicon

Run time error XRUN

Hi,

In a previous mail to the PA mailing list I request some help regarding 
an application I inherited, that uses PortAudio.

See my previous mail below:
---------------------------------
Hi I have the following problem when using PortAudio and ALSA on Debian 
Squeeze to record. I'm using the Alsa that came with Debian Squeeze  I 
think it is version: 1.0.23+dfsg-2

  1) When the application runs, I get alot of XRUN's:

  PaAlsaStream_HandleXrun: restarting Alsa to recover from XRUN
  AlsaStop: Dropped frames
  AlsaRestart: Restarted audio
  Warning: Audio input overflow occurred
  PaAlsaStream_HandleXrun: restarting Alsa to recover from XRUN
  AlsaStop: Dropped frames
  AlsaRestart: Restarted audio
  Warning: Audio input overflow occurred
  PaAlsaStream_HandleXrun: restarting Alsa to recover from XRUN
  AlsaStop: Dropped frames
  AlsaRestart: Restarted audio
  Warning: Audio input overflow occurred
  PaAlsaStream_HandleXrun: restarting Alsa to recover from XRUN
  AlsaStop: Dropped frames
  AlsaRestart: Restarted audio
  Warning: Audio input overflow occurred

(Continue reading)

Alan Horstmann | 26 Jun 2012 10:09
Picon

Re: Run time error XRUN

On Monday 25 June 2012 23:13, Hendrik Schoeman wrote:
> Any suggestions?

Become the detective... ;-)

> I tested Alsa using aplay and arecord. I was able to record and play
> back from the onboard sound card. No problems.
>
> Then I used the paex_record to test the recording functionality of the
> onboard sound card, I experienced the same problem as when I used
> PortAudio with the application I inherited.

So the investigation can ignore the Audioscience card, and the application, 
and focus on the difference between the case using arecord and that using 
paex_record - is that right?

If not already done, build the Portaudio and tests with debug enabled and 
study the exact audio configuration being used at run-time.

Read up on the options to arecord and reproduce the exact same conditions 
(period size, device etc) .  You may be able to identify a critical setting 
that causes the failure.

Perhaps something in the Debian Alsa config has been changed, and no longer 
works quite as Portaudio is expecting?

Does Audacity record OK on Debian Squeeze?

Hope this helps,

(Continue reading)


Gmane