Under /MenuBar/Optional/Extra/Part1
| 807 | using namespace MenuRegistry; |
| 808 | // Under /MenuBar/Optional/Extra/Part1 |
| 809 | auto ExtraDeviceMenu() |
| 810 | { |
| 811 | static auto menu = std::shared_ptr{ |
| 812 | Menu( wxT("Device"), XXO("De&vice"), |
| 813 | Command( wxT("InputDevice"), XXO("Change &Recording Device..."), |
| 814 | OnInputDevice, |
| 815 | AudioIONotBusyFlag(), wxT("Shift+I") ), |
| 816 | Command( wxT("OutputDevice"), XXO("Change &Playback Device..."), |
| 817 | OnOutputDevice, |
| 818 | AudioIONotBusyFlag(), wxT("Shift+O") ), |
| 819 | Command( wxT("AudioHost"), XXO("Change Audio &Host..."), OnAudioHost, |
| 820 | AudioIONotBusyFlag(), wxT("Shift+H") ), |
| 821 | Command( wxT("InputChannels"), XXO("Change Recording Cha&nnels..."), |
| 822 | OnInputChannels, |
| 823 | AudioIONotBusyFlag(), wxT("Shift+N") ) |
| 824 | ) }; |
| 825 | return menu; |
| 826 | } |
| 827 | |
| 828 | AttachedItem sAttachment2{ Indirect(ExtraDeviceMenu()), |
| 829 | Placement{ wxT("Optional/Extra/Part1"), { OrderingHint::End } } |