这是indexloc提供的服务,不要输入任何密码
Skip to content

SDL_OpenAudioDevice last parameter is a bool when it should be a u32 #5494

@powerc9000

Description

@powerc9000

Context

OpenAudioDevice declares the allowed_changes as a bool when the documentation shows that it is supposed to be a u32 flag set.

Vendor code:

OpenAudioDevice :: proc(device: cstring,
iscapture: bool,
desired: ^AudioSpec,
obtained: ^AudioSpec,
allowed_changes: bool) -> AudioDeviceID ---

SDL reference:
https://wiki.libsdl.org/SDL2/SDL_OpenAudioDevice

Expected Behavior

The function should allow either a generic u32 or a bit_set of the options.

Current Behavior

The last parameter is a bool

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