ffd8 / xyscope

XYScope is a library for Processing to render graphics on a vector display (oscilloscope, laser) by converting them to audio.
GNU Lesser General Public License v3.0
152 stars 8 forks source link

soundcard output selection doesn't seem to work #8

Open jmej opened 10 months ago

jmej commented 10 months ago

I'm running windows, Processing 4.01, and minim from the package manager. I am trying to control a laser using a MOTU ultralitemk3.

I see a list of devices including entries like: MOTU Analog 1-2 (MOTU Audio Wave for 64 bit)

using: xy = new XYscope(this, "MOTU Analog 1-2");

I get audio from the default laptop headphones (not the motu)

using: xy = new XYscope(this, "MOTU Analog 1-2 (MOTU Audio Wave for 64 bit)");

I get no audio out of either device, and no rendered visuals in the processing window.

I am hoping to get this to work using with the laser by also adding something like: xy.laser("MOTU Analog 3-4", "MOTU Analog 5-6");

Is this all tested and working on windows? The docs mention aggregate devices which is an OSX paradigm. I could try and find an OSX machine to run this on if this is indeed a windows specific problem.

jmej commented 10 months ago

I also have entries like: 5 = Port MOTU Main Out 1-2 (MOTU Audio W This obviously looks like an incomplete string for some reason.. and passing a 5 instead doesn't work - it looks like the constructor doesn't accept an integer.

if I use: xy = new XYscope(this, "Port MOTU Analog 1-2 (MOTU Audio Wav");

I get a nullpointer exception:

`==== JavaSound Minim Error ==== ==== Couldn't open the line: Line unsupported: interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian

=== Minim Error === === Minim.getLineOut: attempt failed, could not secure a LineOut. ` The MOTU control panel appears to be set to 44.1k