Skip to content

SDL3: update volume to a float #652

Open
@Starbuck5

Description

@Starbuck5

In SDL2, SDL_mixer uses https://wiki.libsdl.org/SDL2/SDL_MixAudioFormat, which takes a volume from 0-128.

In SDL3, SDL_mixer uses https://wiki.libsdl.org/SDL3/SDL_MixAudio, which now takes a float.

According to SDL's README-MIGRATION:

The following symbols have been removed:
SDL_MIX_MAXVOLUME - mixer volume is now a float between 0.0 and 1.0

Therefore, I think it would make sense for SDL_mixer to follow SDL's lead here, before the API is frozen for release.

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