INTERACT FORUM

Please login or register.

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

Author Topic: Crackling sound on higher bitrates  (Read 3447 times)

J.G.

  • Member
  • *
  • Posts: 2
Crackling sound on higher bitrates
« on: November 27, 2015, 09:23:49 am »

I like JRiver on Linux, tough playing music with higher bitrates (like 96, 176,4, 192KHZ) the sound is crackling randomly.  I tried everything in JRiver: different buffer size, hardwaresynchonisation, playing from memory, but the crackling sound stays. I only have alsa installed, not Pulseaudio.

Advanced Linux Sound Architecture Driver Version k4.2.0-18-lowlatency

With other software, like HQplayer or Audacious I don’t have these crackling sound on higher bitrates, so to me it looks like JRiver is causing these issues. Any suggestions to solve the problem are most appreciated, thanks!

My soundcard:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CMedia [HDA C-Media], device 0: CMI8888 Analog [CMI8888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


cat /proc/asound/card0/codec*

Codec: C-Media CMI8888
Address: 1
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x13f68888
Subsystem Id: 0x13f60001
Revision Id: 0x100300
No Modem Function Group found
Default PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x2]: FLOAT
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="CMI8888 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=4, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Surround Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=4, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Side Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=4, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Center Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="LFE Playback Switch", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=4, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x1]: PCM
Node 0x06 [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Connection: 1
     0x02
Node 0x07 [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x01011012: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0x2
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=02, enabled=1
  Connection: 1
     0x03
Node 0x08 [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x01012014: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Grey
    DefAssociation = 0x1, Sequence = 0x4
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=04, enabled=1
  Connection: 1
     0x04
Node 0x09 [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x01016011: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Orange
    DefAssociation = 0x1, Sequence = 0x1
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=03, enabled=1
  Connection: 1
     0x05
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13870
Re: Crackling sound on higher bitrates
« Reply #1 on: November 30, 2015, 11:39:25 am »

I like JRiver on Linux, tough playing music with higher bitrates (like 96, 176,4, 192KHZ) the sound is crackling randomly.  I tried everything in JRiver: different buffer size, hardwaresynchonisation, playing from memory, but the crackling sound stays. I only have alsa installed, not Pulseaudio.

Advanced Linux Sound Architecture Driver Version k4.2.0-18-lowlatency
...
I wouldn't bother with memory playback.
What device are you using in MC's audio configuration?
Logged

J.G.

  • Member
  • *
  • Posts: 2
Re: Crackling sound on higher bitrates
« Reply #2 on: December 01, 2015, 05:21:27 am »

Hello Bob,

Thanks for answering, I’ve the following options under Audio Device (tools-options-audio)

Deafault:CARD=CMedia [ALSA]
dmix:CARD=CMedia,DEV=0 [ALSA]
dsnoop:CARD=CMedia,DEV=0 [ALSA]
front:CARD=CMedia,DEV=0 [ALSA]
hw:CARD=CMedia,DEV=0 [ALSA]
plughw:CARD=CMedia,DEV=0 [ALSA]
surround21:CARD=CMedia,DEV=0 [ALSA]
surround40:CARD=CMedia,DEV=0 [ALSA]
surround41:CARD=CMedia,DEV=0 [ALSA]
surround50:CARD=CMedia,DEV=0 [ALSA]
surround51:CARD=CMedia,DEV=0 [ALSA]
surround71:CARD=CMedia,DEV=0 [ALSA]
sysdefault:CARD=CMedia [ALSA]

I only use:

front:CARD=CMedia,DEV=0 [ALSA]
hw:CARD=CMedia,DEV=0 [ALSA]
plughw:CARD=CMedia,DEV=0 [ALSA]

These outputs doesn’t resample the audioformat to 48KHz, I’ve the ckrackling sound on all the three outputs.
I prefer to use the front:CARD=CMedia,DEV=0 [ALSA], this output sounds best compared tot he other two.

Thanks for your help
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13870
Re: Crackling sound on higher bitrates
« Reply #3 on: December 01, 2015, 10:23:26 am »

Hello Bob,

Thanks for answering, I’ve the following options under Audio Device (tools-options-audio)

Deafault:CARD=CMedia [ALSA]
dmix:CARD=CMedia,DEV=0 [ALSA]
dsnoop:CARD=CMedia,DEV=0 [ALSA]
front:CARD=CMedia,DEV=0 [ALSA]
hw:CARD=CMedia,DEV=0 [ALSA]
plughw:CARD=CMedia,DEV=0 [ALSA]
surround21:CARD=CMedia,DEV=0 [ALSA]
surround40:CARD=CMedia,DEV=0 [ALSA]
surround41:CARD=CMedia,DEV=0 [ALSA]
surround50:CARD=CMedia,DEV=0 [ALSA]
surround51:CARD=CMedia,DEV=0 [ALSA]
surround71:CARD=CMedia,DEV=0 [ALSA]
sysdefault:CARD=CMedia [ALSA]

I only use:

front:CARD=CMedia,DEV=0 [ALSA]
hw:CARD=CMedia,DEV=0 [ALSA]
plughw:CARD=CMedia,DEV=0 [ALSA]

These outputs doesn’t resample the audioformat to 48KHz, I’ve the ckrackling sound on all the three outputs.
I prefer to use the front:CARD=CMedia,DEV=0 [ALSA], this output sounds best compared tot he other two.

Thanks for your help
Those are the ones I would choose and they are probably going to act the same (the plughw one resamples but we specifically try to disable that).
Strangely enough, I had the same crackling with a CMedia card I was using. It almost sounded like the output was clipping. 
I never did figure that out and switched cards. Not sure where the issue could be, the audio driver part of linux MC is very straightforward.
Logged
Pages: [1]   Go Up