Skip to content

Why does GraphAudio.Kit only expose async methods to play sounds #2

@stiboly

Description

@stiboly

Hello.

As the title says, I was just wondering why does GraphAudio.Kit only expose async ways to play sounds?

var sound = await engine.CreateStreamingSoundAsync("sound.ogg");

or

var sound = await engine.CreateBufferedSoundAsync("sound.ogg");

I would expect sync methods to be available, but looking at the code, it would seam difficult. I don't know if it's something that I'm doing wrong, but I don't have a reason to use async in a thing I'm using the engine for, and I pretty much have to if I want to get anywhere.

Please advise. Is there a specific design pattern that I'm unaware of that the engine forces you into or what. What am I not getting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions