You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I'm driving myself nuts trying to figure this one out...
Using a HDMI to USB input device attached to a raspberry pi. The goal is to capture the audio and do some visualizations using the FFT.
For some reason, the audio just kind of decides to work when it wants to. Presently, I'm not getting any input, regardless of how I fiddle with the system.
I've tried enabling/disabling other sound cards, messing with alsamixer settings...nothing there seems to help. Same with reboots, etc.
12:46:20 DBG][AudioStream][LoadData] Reloading audio data [12:46:20 INF][][<ExecuteAsync>b__0] DreamScene: Color Builder canceled. [12:46:20 DBG][AudioStream][LoadData] Audio device: {"Name":"Default","Driver":"default","IsDefault":true,"IsEnabled":true,"IsInitialized":false,"IsLoopback":false,"Type":0} [12:46:20 DBG][AudioStream][LoadData] Selecting recording device index 0: Default [12:46:21 DBG][AudioStream][LoadData] Audio device: {"Name":"MS2109: USB Audio","Driver":"hw:0,0","IsDefault":false,"IsEnabled":true,"IsInitialized":false,"IsLoopback":false,"Type":0} [12:46:21 DBG][][<ExecuteAsync>b__0] Starting stream with device 0 [12:46:21 DBG][][<ExecuteAsync>b__0] Info: {"SupportedFormats":0,"Inputs":1,"SingleInput":false,"Frequency":0,"Channels":0,"IsCertified":false,"SupportsDirectSound":false} [12:46:21 DBG][][<ExecuteAsync>b__0] Record start int: -2147483647 [12:46:21 DBG][][<ExecuteAsync>b__0] Error check: OK
I can see that "isInitialized" becomes "true" once I init recording, I get no errors, and my "update" loop is firing regularly.
So, that begs the question...why is there no audio data???
Using arecord on the pi, while the app is running (but not trying to cap audio), I can save a .mp3 of the current audio with no issue. It's just in managedbass that the sound is presently not working.
I've tried various combinations of init and recordinit and free and recordfree thinking it was maybe something here...but no luck. And again, rebooting is no help.
Any help would be HUGELY appreciated. I've been driving myself nuts with this, initially blaming the capture device and HDMI handshaking...but no...audio into the USB device is rock-solid.
The text was updated successfully, but these errors were encountered:
So, I'm driving myself nuts trying to figure this one out...
Using a HDMI to USB input device attached to a raspberry pi. The goal is to capture the audio and do some visualizations using the FFT.
For some reason, the audio just kind of decides to work when it wants to. Presently, I'm not getting any input, regardless of how I fiddle with the system.
I've tried enabling/disabling other sound cards, messing with alsamixer settings...nothing there seems to help. Same with reboots, etc.
My code is here:
https://github.com/d8ahazard/glimmr/blob/dev/src/Models/ColorSource/Audio/AudioStream.cs
The result of starting the audio service:
12:46:20 DBG][AudioStream][LoadData] Reloading audio data [12:46:20 INF][][<ExecuteAsync>b__0] DreamScene: Color Builder canceled. [12:46:20 DBG][AudioStream][LoadData] Audio device: {"Name":"Default","Driver":"default","IsDefault":true,"IsEnabled":true,"IsInitialized":false,"IsLoopback":false,"Type":0} [12:46:20 DBG][AudioStream][LoadData] Selecting recording device index 0: Default [12:46:21 DBG][AudioStream][LoadData] Audio device: {"Name":"MS2109: USB Audio","Driver":"hw:0,0","IsDefault":false,"IsEnabled":true,"IsInitialized":false,"IsLoopback":false,"Type":0} [12:46:21 DBG][][<ExecuteAsync>b__0] Starting stream with device 0 [12:46:21 DBG][][<ExecuteAsync>b__0] Info: {"SupportedFormats":0,"Inputs":1,"SingleInput":false,"Frequency":0,"Channels":0,"IsCertified":false,"SupportsDirectSound":false} [12:46:21 DBG][][<ExecuteAsync>b__0] Record start int: -2147483647 [12:46:21 DBG][][<ExecuteAsync>b__0] Error check: OK
I can see that "isInitialized" becomes "true" once I init recording, I get no errors, and my "update" loop is firing regularly.
So, that begs the question...why is there no audio data???
Using arecord on the pi, while the app is running (but not trying to cap audio), I can save a .mp3 of the current audio with no issue. It's just in managedbass that the sound is presently not working.
I've tried various combinations of init and recordinit and free and recordfree thinking it was maybe something here...but no luck. And again, rebooting is no help.
Any help would be HUGELY appreciated. I've been driving myself nuts with this, initially blaming the capture device and HDMI handshaking...but no...audio into the USB device is rock-solid.
The text was updated successfully, but these errors were encountered: