Author Topic: Debugging macOS underflow  (Read 205 times)

elan

  • Posts: 29
Debugging macOS underflow
« on: 7 Jun '19 - 23:58 »
I'm running into an issue on macOS where there is an audible underflow every few minutes, but I'm not seeing a BASS_SYNC_STALL on my mixer so I'm at a loss to explain how/why it's happening.

Stream graph is:

My ears <- Mixer <- Decode Stream (used for gapless) <- Source stream (generally file user)

Output is configured like this:

Code: [Select]
  BASS_SetConfig(BASS_CONFIG_DEV_PERIOD, 150);
  BASS_SetConfig(BASS_CONFIG_UPDATEPERIOD, 25);
  BASS_SetConfig(BASS_CONFIG_BUFFER, 150);

I see latency: 141ms, min buffer: 93ms.

Any suggestions?

Core version 2.4.14.1
Mixer version 2.4.9.0
FX version 2.4.12.1
« Last Edit: 8 Jun '19 - 00:01 by elan »

elan

  • Posts: 29
Re: Debugging macOS underflow
« Reply #1 on: 8 Jun '19 - 21:03 »
Actually, it's possible this is an issue with macOS itself  ::) ...resetting PRAM/SMC _seems_ to resolve the issue. I think, at least.

EDIT: No, that didn't fix it. Still investigating...
« Last Edit: 9 Jun '19 - 23:06 by elan »

Ian @ un4seen

  • Administrator
  • Posts: 21979
Re: Debugging macOS underflow
« Reply #2 on: 10 Jun '19 - 14:18 »
I'm running into an issue on macOS where there is an audible underflow every few minutes, but I'm not seeing a BASS_SYNC_STALL on my mixer so I'm at a loss to explain how/why it's happening.

If your BASS_SYNC_STALL sync isn't getting triggered then that means the underflow is in the device output rather than in the mixer's playback buffer. For comparison, is the result any different if you leave those config options at the defaults? If you have another soundcard available, please also see if the result is any different when using that.