Skip to content

Sampler (Dunne): Assertion failure (segments) in DunneCoreMultiSegmentEnvelopeGenerator::skipEmptySegments() #3

@maksutovic

Description

@maksutovic

Describe the bug
When attempting to play a note with the Sampler() object, the app crashes.
I.E. sampler.play(noteNumber: velocity: channel)

It is a failed assertion on segments in the envelope generator:

Assertion failed: (segments), function skipEmptySegments, file EnvelopeGeneratorBase.cpp, line 93.
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/usr/lib/libMTLCapture.dylib

This is with samples loaded into the sampler via the SFZ method (the preferred method). I have tried loading a sample with Sampler(sampleDescriptor: file) however I am unable to produce any output with this method.

To Reproduce
I have made a rudimentary repo which demonstrates the issue: https://github.com/maksutovic/DunneSamplerCrash-AK-5.2.2

  1. Clone Repo
  2. Run in either Simulator or Device
  3. Assertion failure

Expected behavior
I expect the Sampler() to in fact play the note specified and not crash.

Screenshots
If applicable, add screenshots to help explain your problem.
Screen Shot 2021-11-17 at 12 48 19 PM
Screen Shot 2021-11-17 at 12 48 38 PM

Details (please complete the following information):

  • Type: iPhone 11 Pro OR Simulator
  • OS: iOS 15.1 19B74
  • AudioKit Version: 5.2.2

Additional context
I would be happy to try and resolve this issue however I would definitely need some pointers of how the envelope generator works with the sampler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions