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

Merge Song & Sample (Audio 3.0, supersedes #441) #562

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

jlnr
Copy link
Member

@jlnr jlnr commented Dec 27, 2020

One "issue" with using SDL_sound for audio loading is that it supports formats with built-in loop points. When Gosu::Sample#initialize tries to completely preload such a file, it will crash.

This seems like a great chance to merge Sample & Song by having them both stream the file by default. If it is short enough, it can stay loaded in memory as an optimization (= the old Sample behavior).

This was meant to land in Gosu 1.0, but given #560, I think I will push this back since it is easy enough to work around this issue during development by not using looping samples.

@jlnr jlnr added the audio label Dec 27, 2020
@jlnr jlnr marked this pull request as draft December 27, 2020 14:14
@jlnr jlnr mentioned this pull request Nov 29, 2021
jlnr added a commit that referenced this pull request Jan 3, 2022
* clang-format & clang-tidy adjustments
* More comment and typecast fixes
* Replace `rake format` with clang-format, and document this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant