[DllImport(Libraries.SoundManager, EntryPoint = "sound_manager_apply_stream_routing")]
internal static extern AudioManagerError ApplyStreamRouting(AudioStreamPolicyHandle streamInfo);
+ [DllImport(Libraries.SoundManager, EntryPoint = "sound_manager_set_stream_preferred_device_id")]
+ internal static extern AudioManagerError SetPreferredDevice(AudioStreamPolicyHandle streamInfo, AudioDeviceIoDirection direction, int deviceId);
+
+ [DllImport(Libraries.SoundManager, EntryPoint = "sound_manager_get_stream_preferred_device")]
+ internal static extern AudioManagerError GetPreferredDevice(AudioStreamPolicyHandle streamInfo, out int inDeviceId, out int outDeviceId);
+
[DllImport(Libraries.SoundManager, EntryPoint = "sound_manager_acquire_focus")]
internal static extern AudioManagerError AcquireFocus(AudioStreamPolicyHandle streamInfo,
AudioStreamFocusOptions focusMask, AudioStreamBehaviors audioStreamBehavior, string extraInfo);