Skip to content

regular glitches in audio output at 48kHz #2312

Closed

Description

@sevdh

I'm getting regular glitches (every 8 seconds) with the following patch that outputs a continuous offset to the dac~:

[sig~ 0.2]
|
[dac~]

The glitches occur when the sample rate is set to 48kHz. They don't occur at a sample rate of 44.1kHz.

output: macbook pro speakers
plugdata 0.9.3-1
macOS 15.7.4

It doesn't happen with Pure Data 0.56-2.

Activity

  1. timothyschoen commented on Mar 14, 2026

    @timothyschoen
    Collaborator

    Unfortunately I'm not able to reproduce this. Does this always happen for you?

  2. sevdh commented on Mar 14, 2026

    @sevdh
    Author

    It took me a bit of time to create a reproduction scenario and had to increase the value of [sig~ ] to 0.4.

    sample rate: 48000
    buffer size: 512
    audio output: MacBook Pro Speakers

    Here it is:

    • open Plugdata first
    • open the attached patch

    opening Plugdata by opening the patch doesn't exhibit the problem somehow...

    Running the patch in Pure Data doesn't give this problem.

    The glitches don't occur with the headphone as output. Therefore I think that the glitches are somehow caused by the macbook turning on and off the power to amplifier for the the built-in speakers over and over and not caused by Plugdata... but then why would there be a difference between Plugdata and Pure Data?

    PD-bug.pd.zip

  3. jayrope commented on Mar 17, 2026

    @jayrope

    Please check, if the audio sample rate of your DAW session or Plugdata standaone app matches the one mentioned in Audio MIDI Setup for your output selection. If it doesn't, please make them match and recheck, if error is still persistent. I am on the same OS version than you and can't reproduce your error here.

  4. sevdh commented on Mar 17, 2026

    @sevdh
    Author
  5. jayrope commented on Mar 17, 2026

    @jayrope

    @sevdh Hi Edwin, this pretty much indicates, that the problem is either in Macos or subsequently in your speaker chain.

  6. sevdh commented on Mar 17, 2026

    @sevdh
    Author
  7. jayrope commented on Mar 17, 2026

    @jayrope

    @sevdh Edwin, just to clarify, I am not a dev, am just a user like you, on the same macos and Plugdata versions. Are sampling rate settings the same in both Pure Data and Plugdata?

  8. timothyschoen commented on Nov 12, 2026

    @timothyschoen
    Collaborator

    I believe this may have been fixed on JUCE's side since we updated to JUCE 9, which should mean it no longer happens on nightly builds, could you confirm this is the case?

  9. sevdh commented on Nov 12, 2026

    @sevdh
    Author

    Hi Timothy, I can confirm the bug is resolved on nightly. Thank you!
    Also thanks for looking into the unicode parsing :-)

  10. moved this from Todo to Done in v0.9.4on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions