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

API/ABI change request for SDL3 #482

Open
klei1984 opened this issue Dec 30, 2022 · 2 comments
Open

API/ABI change request for SDL3 #482

klei1984 opened this issue Dec 30, 2022 · 2 comments
Milestone

Comments

@klei1984
Copy link

Hello,

I have a use case to play digital audio samples that have loop points. Loop points are supported by various digital formats, for example RIFF WAV files can store sample points in "smpl" chunks. E.g. the audio sample has a ramp up phase that plays once and then a relatively short segment follows that needs to be looped or repeated seamlessly until the sample is stopped by an API call. Loop points in music samples are supported for certain digital audio formats by SDL_mixer now, but the feature is not possible to do with Mix_Chunk samples without breaking the ABI as I was told.

Please consider to add some placeholder in the SDL_Chunk structure to allow later addition of support for loop points in digital audio samples that are not music.

Alternative suggestion: Please unify or merge the digital non music and digital music playback API. This way there is a single interface to play any type of digital audio with optional support for loop points. One historical API that worked that way is HMI Sound Operating System for which the API specification can be found here for an example.

Thanks.

@slouken
Copy link
Collaborator

slouken commented Dec 31, 2022

Yes, this seems like a good idea for SDL_mixer 3.0. Feel free to submit a proposal.

@Wohlstand
Copy link
Contributor

Seems thins thing is related to WohlSoft/SDL-Mixer-X#42 .
So, one possible way is making Mix_Chunk being an opaque thing (and for these advanced folks who still wants direct access to PCM data inside the chunk, provide related API calls).

@slouken slouken added this to the 3.0 milestone Jan 14, 2024
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

No branches or pull requests

3 participants