Changeset 98967 in vbox
- Timestamp:
- Mar 14, 2023 4:05:23 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98942 r98967 1907 1907 /* Audio stuff: */ 1908 1908 { 1909 /* Check whether audio adapter is present & enabled: */ 1909 /* Do we need to restrict something? */ 1910 bool fRestricted = false; 1911 /* Check whether audio adapter is present: */ 1910 1912 bool fAdapterPresent = false; 1911 bool fAdapterEnabled = false;1912 1913 acquireWhetherAudioAdapterPresent(fAdapterPresent); 1913 acquireWhetherAudioAdapterEnabled(fAdapterEnabled); 1914 if (!fAdapterPresent || !fAdapterEnabled) 1914 if (!fAdapterPresent) 1915 fRestricted = true; 1916 else 1917 { 1918 /* Check whether audio adapter is enabled: */ 1919 bool fAdapterEnabled = false; 1920 acquireWhetherAudioAdapterEnabled(fAdapterEnabled); 1921 if (!fAdapterEnabled) 1922 fRestricted = true; 1923 } 1924 /* Apply restrictions: */ 1925 if (fRestricted) 1915 1926 restrictionForDevices = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType) 1916 1927 (restrictionForDevices | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Audio);
Note:
See TracChangeset
for help on using the changeset viewer.