@@ -101,7 +101,7 @@ func (c *CurrentPlaybackDevice) InitDevices() {
101101 for index , deviceInfo := range playbackDevices {
102102 if deviceInfo .Name () == c .OutputDeviceName {
103103 selectedPlaybackDeviceIndex = index
104- fmt .Println ("Found input device: " , deviceInfo .Name (), " at index: " , index )
104+ fmt .Println ("Found output device: " , deviceInfo .Name (), " at index: " , index )
105105 break
106106 }
107107 }
@@ -247,9 +247,9 @@ func (c *CurrentPlaybackDevice) Init() {
247247
248248}
249249
250- func GetAudioDevices (deviceType malgo.DeviceType ) ([]CustomWidget.TextValueOption , error ) {
250+ func GetAudioDevices (deviceType malgo.DeviceType , deviceIndexStartPoint int ) ([]CustomWidget.TextValueOption , error ) {
251251
252- deviceList , _ := Utilities .GetAudioDevices (deviceType )
252+ deviceList , _ := Utilities .GetAudioDevices (deviceType , deviceIndexStartPoint )
253253
254254 if deviceList == nil {
255255 return nil , fmt .Errorf ("no devices found" )
@@ -277,8 +277,8 @@ func CreateProfileWindow(onClose func()) fyne.CanvasObject {
277277
278278 go playBackDevice .Init ()
279279
280- audioInputDevices , _ := GetAudioDevices (malgo .Capture )
281- audioOutputDevices , _ := GetAudioDevices (malgo .Playback )
280+ audioInputDevices , _ := GetAudioDevices (malgo .Capture , 0 )
281+ audioOutputDevices , _ := GetAudioDevices (malgo .Playback , len ( audioInputDevices ) )
282282
283283 BuildProfileForm := func () fyne.CanvasObject {
284284 profileForm := widget .NewForm ()
0 commit comments