Closed Cactusbone closed 10 years ago
Unfortunately, there isn't a way to do that right now. PortAudio doesn't make it easy for some reason, and I haven't had the time to dig in and figure out why.
What are you trying to build? If this is something you really need, I might be able to point you in the direction of some possible solutions.
To read more about the problems, see this thread: http://ubuntuforums.org/showthread.php?t=1856704
I'm trying to get leds to light up based on music playing on my computer.
for now i'll settle to using "line in" i guess. thanks for the quick answer !
I've just tried line in to speakers, without any kind of processing on my side (simply returns inputBuffer) and i get a lot of noise and the result is twitchy. if i do it directly in the hd realtek panel, sound is crystal clear (simply increase volume in the panel).
here's part of the logs
WASAPI:2| name[Haut-parleurs (Realtek High Definition Audio)]
WASAPI:2| form-factor[1]
WASAPI:2| def.SR[48000] max.CH[2] latency{hi[0.010000] lo[0.003000]}
WASAPI: device idx: 03
WASAPI:4| name[Line in at rear panel (Blue) (Realtek High Definition Audio)]
WASAPI:4| form-factor[2]
WASAPI:4| def.SR[44100] max.CH[2] latency{hi[0.010159] lo[0.003000]}
WASAPI: device idx: 05
what am i doing wrong ? O_o
Could you post your code in a gist please? I'll try to take a look when I get a chance. There may be some deeper issue within the audio engine
https://gist.github.com/Cactusbone/1aea1635f34869b13e30
I'm using windows 7 64bit and i'm still seeing my sound devices twice :)
same twitchy sound in vista 64bit with an integrated sigmatel. i'll try using a real soundcard.
I've just noticed sound is far greater (not crystal clear but not too bad) when i set interleaved to true.
ok after more tests, with inputChannels set to 1 and outputChannels set to 1, (interleaved true of false does not matter) the sound is crystal clear. with inputChannels to 2 and ouputChannels to 1, i get some glitches (but not many) interleaved = true slows down music (as expected), but whenever outputChannels is set to 2, i have load of glitches.
hello ! I'm trying to get data from playing music to push it to a ledStrip, I've looked at secondtest.js and it does seems to do what i want but I get a "Failed to start audio stream" whenever i try to set input to "Speakers" i'm using windows 7 64bit. also i'm seeing all my sound devices twice
Is it possible to get currently playing data ? how to do that ?
Nice job anyway :)