Skip to content

make AudioDeviceManager and Engine public - enable Sound.getOutputDevices() #94

Open
@trackme518

Description

@trackme518

Engine.AudioDeviceManager audioManager = Sound.getAudioDeviceManager();
Get me an error: The type Engine is not visible

I would like to list and filter audio devices myself - specifically I want to list only output devices so I can create GUI for the user with list of devices to choose from.

I also want to be able to retrieve the individual device and for that I need to know the type - input or output.
AudioDevice device = Engine.getEngine().outputDevice(i);

So ideally there would be method Sound.getOutputDevices() and Sound.getInputDevices() that would return the array of AudioDevice type. I can than loop through them, check their properties and decide what to do (like checking how many outputs it has, name, id, samplerate).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions