INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: No sound when playlist shifts SR  (Read 3072 times)

giulix

  • Recent member
  • *
  • Posts: 6
No sound when playlist shifts SR
« on: February 28, 2019, 08:12:23 am »

Ola all! This happens on a RPi 3B with Allo Digione: when I am playing my Favs playlist (560+ tracks), composed of songs of all kinds, I sometimes get no sound when the playlist shifts from a 44.1 kHz to a 96 kHz song. The progress bar continues to advance as if nothing happened but I get no audio off my Cambridge Audio DACMagic Plus. If I advance to the next song and then skip back and replay the higher definition track, it then plays fine. This does not happen when playing the same playlist on other MC (e.g. Volumio). All settings tuned for HD audio. Gapless on.

What gives?

Thank you, g.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: No sound when playlist shifts SR
« Reply #1 on: February 28, 2019, 08:30:08 am »

I would first try enabling the setting "Use gapless for sequential album tracks." My guess is that gapless and sample rate changes don't mix well with your hardware. Enabling that setting should cut down on the number of times that problem should arise.
Logged

giulix

  • Recent member
  • *
  • Posts: 6
Re: No sound when playlist shifts SR
« Reply #2 on: February 28, 2019, 08:31:49 am »

Thanks BryanC, appreciate. I will try that and report back.
Logged

giulix

  • Recent member
  • *
  • Posts: 6
Re: No sound when playlist shifts SR
« Reply #3 on: March 03, 2019, 06:49:50 am »

Just in case someone else comes across the same problem: I set Track Change to standard gapped with 1s gap, but it didn't seem to do much. What it looks like it's making a difference is increasing the buffer time to 600k in Player/Playback Options/Audio Device/Device settings.
Logged

giulix

  • Recent member
  • *
  • Posts: 6
Re: No sound when playlist shifts SR
« Reply #4 on: March 15, 2019, 07:50:42 am »

Increased to 800k, as it's still happening. Anybody knows what Period Time is in Device Settings? Looked in the docs, but there seems to be no mention of it...I thought I'd ask here before starting to make random adjustments.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13870
Re: No sound when playlist shifts SR
« Reply #5 on: March 19, 2019, 09:14:27 am »

Increased to 800k, as it's still happening. Anybody knows what Period Time is in Device Settings? Looked in the docs, but there seems to be no mention of it...I thought I'd ask here before starting to make random adjustments.
Period time and Buffer time end up calculating a optimal buffer size.
The default of 500k is 1/2 second buffer time.
There was a fix made in 24.0.74 that made these work much better. Be sure you are running that build or newer.
On a fast box you can reduce both of those by a factor of at least 100.

You might try running alsacap from a prompt:
/usr/lib/jriver/Media\ Center\ 24/alsacap
without anything playing to see what output format your device supports and use the highest supported one instead of Auto in the device settings (this will have no effect if your device supports S32_LE but if it doesn't it could help with the device opens if it has an issue with them).
Looks like yours supports S24_LE and S16_LE. You could try both of those one at a time to see if that helps.

Logged

giulix

  • Recent member
  • *
  • Posts: 6
Re: No sound when playlist shifts SR
« Reply #6 on: March 19, 2019, 02:09:34 pm »

Hi Bob,

yes, I am now on 24.0.76 after updating yesterday. And yes, both are supported:

Code: [Select]
pi@raspberrypi:~$ /usr/lib/jriver/Media\ Center\ 24/alsacap
*** Scanning for playback devices ***
Card 0, ID `ALSA', name `bcm2835 ALSA'
  Device 0, ID `bcm2835 ALSA', name `bcm2835 ALSA', 7 subdevices (7 available)
    1..2 channels, sampling rates 8000, 11025, 16000, 22050, 32000, 44100, 48000 Hz
    Sample formats: U8, S16_LE
      Subdevice 0, name `subdevice #0'
      Subdevice 1, name `subdevice #1'
      Subdevice 2, name `subdevice #2'
      Subdevice 3, name `subdevice #3'
      Subdevice 4, name `subdevice #4'
      Subdevice 5, name `subdevice #5'
      Subdevice 6, name `subdevice #6'
  Device 1, ID `bcm2835 ALSA', name `bcm2835 IEC958/HDMI', 1 subdevices (1 available)
    2 channels, sampling rates 44100, 48000 Hz
    Sample formats: S16_LE
      Subdevice 0, name `subdevice #0'
Card 1, ID `sndallodigione', name `snd_allo_digione'
  Device 0, ID `Allo DigiOne HiFi wm8804-spdif-0', name `', 1 subdevices (1 available)
    2 channels, sampling rates 32000, 44100, 48000, 88200, 96000, 176400, 192000 Hz
    Sample formats: S16_LE, S24_LE
      Subdevice 0, name `subdevice #0

So, given that unity of measure, default buffer time on my RPi is 400000 μs, 800000 at present. I will give S16_LE a try and, if it doesn't improve, S24_LE.

Thanks a bunch,

g.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13870
Re: No sound when playlist shifts SR
« Reply #7 on: March 19, 2019, 03:46:20 pm »

Hi Bob,

yes, I am now on 24.0.76 after updating yesterday. And yes, both are supported:

Code: [Select]
pi@raspberrypi:~$ /usr/lib/jriver/Media\ Center\ 24/alsacap
*** Scanning for playback devices ***
Card 0, ID `ALSA', name `bcm2835 ALSA'
  Device 0, ID `bcm2835 ALSA', name `bcm2835 ALSA', 7 subdevices (7 available)
    1..2 channels, sampling rates 8000, 11025, 16000, 22050, 32000, 44100, 48000 Hz
    Sample formats: U8, S16_LE
      Subdevice 0, name `subdevice #0'
      Subdevice 1, name `subdevice #1'
      Subdevice 2, name `subdevice #2'
      Subdevice 3, name `subdevice #3'
      Subdevice 4, name `subdevice #4'
      Subdevice 5, name `subdevice #5'
      Subdevice 6, name `subdevice #6'
  Device 1, ID `bcm2835 ALSA', name `bcm2835 IEC958/HDMI', 1 subdevices (1 available)
    2 channels, sampling rates 44100, 48000 Hz
    Sample formats: S16_LE
      Subdevice 0, name `subdevice #0'
Card 1, ID `sndallodigione', name `snd_allo_digione'
  Device 0, ID `Allo DigiOne HiFi wm8804-spdif-0', name `', 1 subdevices (1 available)
    2 channels, sampling rates 32000, 44100, 48000, 88200, 96000, 176400, 192000 Hz
    Sample formats: S16_LE, S24_LE
      Subdevice 0, name `subdevice #0

So, given that unity of measure, default buffer time on my RPi is 400000 μs, 800000 at present. I will give S16_LE a try and, if it doesn't improve, S24_LE.

Thanks a bunch,

g.

It seems we have one of those here on an IdPi (3b+)
I set it to S24_LE and played mixed material up to 192k/24bit without a hiccup so hopefully this will solve the issue for you.
Logged
Pages: [1]   Go Up