frontend-sdl2 icon indicating copy to clipboard operation
frontend-sdl2 copied to clipboard

[APP BUG] 9/10 times, sound is not detected on application startup until audio source device is change/reselected

Open Ketrel opened this issue 1 year ago • 1 comments
trafficstars

Please confirm the following points:

  • [X] This report is NOT about the Android apps in the Play Store
  • [X] I have searched the project page to check if the issue was already reported

Affected Application

I don't know / Other (please elaborate below)

Affected Version

f60cd86ab

Operating System

Linux (Desktop)

Additional Application Details

Using pulseaudio as verified with SDL_AUDIODRIVER=pulseaudio

Type of Defect

Audio issue (no audio recording, delayed reaction)

Log Output

No log file seems to be generated, but the console output is shown below

With no interaction


Events enabled: 1
Recording audio from device "Monitor of Razer Kraken V3 X Pro" (ID 0).
Opened audio recording device "Monitor of Razer Kraken V3 X Pro" (ID 0) with 2 channels at 44100 Hz.

With interaction

Events enabled: 1
Recording audio from device "Monitor of Razer Kraken V3 X Pro" (ID 0).
Opened audio recording device "Monitor of Razer Kraken V3 X Pro" (ID 0) with 2 channels at 44100 Hz.
Opened audio recording device "Monitor of Razer Kraken V3 X Pro" (ID 0) with 2 channels at 44100 Hz. 


### Describe the Issue

9/10 times upon application start up, sound is not recognized or reacted to in any way.   
1/10 times it works after about 3-5 seconds.

In the rare times it works without interaction, the log output appears as the "With no interaction" above.  This is the log output regardless of if it works or not.

For the 9/10 times it does not, changing the audio device, either from the settings screen or the menu, even to the same device (as demonstrated with the log labeled "With interaction", audio is detected and everything works as normal.



Ketrel avatar May 13 '24 20:05 Ketrel

I have a similar issue, and I am using PipeWire, but that shouldn't matter. I built and ran this from source at 9d93ead3.

When I open pavucontrol and enter the Recording tab, it's consistently wrong, trying to record audio from a speaker device. It should be recording from the monitor of my speaker, not the speaker itself. Speakers are not sources, they're sinks, but something between PulseAudio and frontend-sdl-cpp disagrees. It does not matter what device I select via the frontend-sdl-cpp GUI, pavucontrol always shows it recording from the wrong device, so no wonder there's no audio data coming through.

The second part of the issue is that the previous connection is not closed, so if I keep changing audio devices via the frontend-sdl-cpp GUI, then multiple redundant "recording" entries will linger under pavucontrol Recording tab.

Image

Image

/opt/dev/oss/projectM/frontend-sdl-cpp> /opt/dev/oss/projectM/frontend-sdl-cpp/build/release/src/projectMSDL
2025-03-10T06:16:57Z Events enabled: 1
2025-03-10T06:16:57Z Recording audio from device "Default capturing device" (ID -1).
2025-03-10T06:16:57Z Opened audio recording device "System default capturing device" (ID -1) with 2 channels at 44100 Hz.
2025-03-10T06:16:57Z Displaying preset: /usr/share/projectM/presets/Rovastar - Visions Beyond.milk
2025-03-10T06:17:10Z Opened audio recording device "Monitor of Built-in Audio Digital Stereo (IEC958)" (ID 3) with 2 channels at 44100 Hz.
2025-03-10T06:17:14Z Opened audio recording device "Blue Microphones Digital Stereo (IEC958)" (ID 5) with 2 channels at 44100 Hz.
2025-03-10T06:17:22Z Opened audio recording device "Monitor of Built-in Audio Digital Stereo (IEC958)" (ID 3) with 2 channels at 44100 Hz.
2025-03-10T06:17:27Z Displaying preset: /usr/share/projectM/presets/Bdrv et AL Aderrasi - Accelerator (Orbital Migraine) bdvr xxx2_1 - mrt sth.milk
2025-03-10T06:17:58Z Displaying preset: /usr/share/projectM/presets/Geiss - Dynamic Swirls 2 - max invert.milk
2025-03-10T06:18:26Z Displaying preset: /usr/share/projectM/presets/shifter - mandala.milk
2025-03-10T06:18:55Z Displaying preset: /usr/share/projectM/presets/Rovastar - eclectic interface (despair mix).milk
2025-03-10T06:19:23Z Displaying preset: /usr/share/projectM/presets/Rovastar & Krash - Cerebral Demons (Beat Pulse Mix).milk
2025-03-10T06:19:54Z Displaying preset: /usr/share/projectM/presets/Hexcollie, Flexi, ORB, EoS n DaNOnE - Pineal Massage [5 minute composite quickshot].milk
2025-03-10T06:20:25Z Displaying preset: /usr/share/projectM/presets/Inside A Black Whole AdamFX 2 martin - another kind of groove (Ati Fix)Ft Raron Flexi and Rovastar (AdamFX Remix)Uh huh 22.milk
2025-03-10T06:20:54Z Displaying preset: /usr/share/projectM/presets/StudioMusic & Unchained - Entity.milk
2025-03-10T06:21:24Z Displaying preset: /usr/share/projectM/presets/Zylot - De(-a)range(d)(ment) strain.milk
2025-03-10T06:21:56Z Displaying preset: /usr/share/projectM/presets/Aderrasi - Contortion (Escher's Tunnel Mix).milk
2025-03-10T06:22:27Z Displaying preset: /usr/share/projectM/presets/LuxXx - Ain't Life a Motherfucker iv.milk
2025-03-10T06:22:58Z Displaying preset: /usr/share/projectM/presets/suksma - greaezequescent red-eyed black goatz.milk

MadMartian avatar Mar 11 '25 00:03 MadMartian