-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help needed to set it up :) #4
Comments
The output seems fine, I have some debug prints left there. The necessary part in .asoundrc is the line i have commented: What the alsa config does, it creates a duplicating router (multi_dev) which shares your default sound output (alsa_sink) to hardware card (hw:1,0) and loopback card (hw:Loopback,0,0) which is then set as default recording device. This enables a software loopback. Another option would be to use loopback recording (Stereo mix) from soundcard straightly, I tested it on Windows. I still doubt if the loopback thing works with pulseaudio, KodiBuntu ships without pulse (better sound quality etc.) so I haven't tested it with it. EDIT: Oh, and what I forgot from the instructions, you should reboot after modifying .asoundrc or at least reload alsa |
None of the setting in .asoundrc worked :( How can I debug further? |
You can test Gstreamer without python like this: If you hear beep, you can test the level plugin like this: If that works, try What are you using for playback? I have tested with VLC, audacious and Spotify, all of them work. You can also get detailed debug messages from Gstreamer by adding If those tests don't work, it might be a problem with pulseaudio, I should test myself how to setup pulseaudio with this. You can check if u have pulseaudio: |
jacwk@jacwk-HP-ENVY-17-Notebook-PC:~$ gst-launch-1.0 audiotestsrc ! alsasink device="hw:1,0" |
Ok, I believe that pulseaudio takes control of your device. Check the last chapter I wrote. |
jacwk@jacwk-HP-ENVY-17-Notebook-PC: I got the "beep" sound. |
Ok, so you have pulseaudio. I need to investigate further if it's possible to make the loobback device work with it. EDIT: Check also if your card has internal loopback, show the output of |
jacwk@jacwk-HP-ENVY-17-Notebook-PC: |
Only one input device, so either the driver doesn't support loopback or it doesn't have one. |
On Windows 8.1 I haven't got GUI drawn properly :( (endless "busy" circle as a mouse pointer and window is "not responding") |
There might be some issues with Tk (gui) on Windows. Also the PyGObject didn't run smoothly for me either. Even without the gui it was laggy. I'm going to install pulseaudio back to my virtualbox machine to see if I get this running with it. It should have monitor device by default, according to these instructions: I wanted to use alsa only at first cause my HTPC doesn't have pulseaudio. |
Ok, I was able to get it working on my virtualbox. Remove (or rename) the I selected "Monitor of Built-in Audio Analog Stereo" as input and now GUI draws bars. After quitting pavucontrol and restarting python it remembers the setting. Test if this works for you, I can then update the instructions. |
Yes, that works. There are still some values hardcoded in effects file, and those from main.py are ignored. That already looks very promising... :) |
I've created 3 effects, all of them are quite basic and need modifications to be cool. Effects are in folder Latest thing I tried is to map the spectrum levels to brightness of the leds. The important parts of the effect file are these: Here you init the spectrum dump (see spectrum_dump.py for explanation of those parameters): Basically it can give you 2 types of data, volume levels (vumeter=True) or frequency spectrum (vumeter=False). And here you handle the magnitudes you receive:
If it takes too much cpu, you can set longer sleep, Sorry for uncommented code... :) |
@tociek what about the lightberry? I'd like to make this compatible with pi too but I don't own one. ;) |
@RanzQ drop me an email via Lightberry website |
Ok, I did step by step instalation, but I guess I do not fully uderstand the part about .asoundrc configuration.
Here is what I get from aplay -l
jacwk@jacwk-HP-ENVY-17-Notebook-PC:~/hyperion-audio-effects$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: 92HD91BXX Analog [92HD91BXX Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 2: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 2: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
How should my .asoundrc file look like?
when I start the app i get this output:
jacwk@jacwk-HP-ENVY-17-Notebook-PC:~/hyperion-audio-effects$ python main.py --gui
effect
(1L, 2L, 4L, 0L)
Using pipeline: autoaudiosrc ! level message=true interval=50000000 ! fakesink
Bus connected.
Pipeline STATE_PLAYING set.
Pipeline initialized.
But nothing happens, even in gui mode.
The text was updated successfully, but these errors were encountered: