Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop PresetPreviewPlayHandle's shared buffer system #2586

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

Fastigium
Copy link
Contributor

Instead, add the NotePlayHandle used for previewing directly to the mixer. Fixes #2434 and certain previews being cut off at mouse release even if a release was set in the envelope. Testing welcome!

Instead, add the NotePlayHandle used for previewing directly to the mixer.
This fixes two preview problems, namely the shared buffer being released
by the NotePlayHandle but still being pulled in by the AudioPort resulting
in distortions, and certain previews being cut off at mouse release even if
a release was set in the envelope.
@Fastigium
Copy link
Contributor Author

Note that I have one doubt about this solution: it effectively makes PresetPreviewPlayHandle a dummy PlayHandle. Not a perfect score for conceptual soundness. But hey, I chased this bug for hours today 😲. If anyone has suggestions for a more elegant solution, I'll be happy to look into them tomorrow.

@Fastigium
Copy link
Contributor Author

FYI this pull request has been tested at #2434 (comment) and #2575 (comment) with good results. Therefore, this PR is ready to merge as far as I'm concerned.

@zonkmachine
Copy link
Member

Merging. It's rock solid as testing goes but I can't give any feedback on the coding but it's been discussed here in issue 2434.

zonkmachine added a commit that referenced this pull request Feb 23, 2016
Drop PresetPreviewPlayHandle's shared buffer system
@zonkmachine zonkmachine merged commit a4649c8 into LMMS:master Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants