alessandrofama / wwise-godot-integration

Wwise Integration for the Godot Engine
Other
288 stars 14 forks source link

Playback Audio Session Category Setting Missing #50

Closed jasonpkovalski closed 2 years ago

jasonpkovalski commented 2 years ago

On iOS, it would be useful to have the Playback option for the Audio Session Category under Wwise iOS Advanced Settings: https://github.com/alessandrofama/wwise-godot-integration/blob/main/wwise-gdnative/gdnative-demo/wwise/wwise_settings.gd#L128-L129.

The AVAudioSessionCategoryPlayback Audio Session Category will allow audio to play in silent mode without having to request audio input / microphone access (the only way to play audio in silent mode currently is to use the Play and Record category). Screen Shot 2022-04-05 at 9 00 10 PM

alessandrofama commented 2 years ago

Could you try adding a "playback" enum value to the settings snippet you provided, it should work out of the box on the cpp side:

    _add_setting(WWISE_IOS_ADVANCED_SETTINGS_PATH + "audio_session_category", 0,
                TYPE_INT, PROPERTY_HINT_ENUM, "Ambient, Solo Ambient, Play And Record, Playback")

Probably need to launch the scene once or restart the engine for the new value to appear in the settings. Adding this to the fixes for the next release.

jasonpkovalski commented 2 years ago

@alessandrofama Simply adding that enum value worked! Should I close this issue or leave it open?

alessandrofama commented 2 years ago

I will close the issue as soon as I push the fix, thanks for reporting this!