Tcl's snack returns garbage list of mixer inputs

97 views Asked by At
package require sound
foreach jack [snack::mixer inputs] {
  puts $jack
}

I expected to get a list with identifiers like Line1, Mic, etc, but I get the following garbage:

Ðnf

I wanted to build a dropbox list to choose a mixer input to record from. I am on Linux, using Tcl 8.6 and snack extension 2.2.10.

Am I doing something wrong or this is a bug I should report upstream?

1

There are 1 answers

1
Mario Santini On

I did something similar using snack version 2.2 with Tcl/Tk version 8.6.

But is used the following code:

package require snack

set inputList [audio inputDevice]

The result is a list of input devices name that I could set with:

audio selectInput [lindex $inputList $idx]

This is part of a multi platform software that works on Linux too.

Of course you could use snack::audio to have a better qualified name.