projectM-visualizer / frontend-sdl-cpp

Standalone application based on libSDL that turns your desktop audio into awesome visuals. Available on most platforms supported by both libprojectM and libSDL.
GNU General Public License v3.0
66 stars 35 forks source link

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

Open Ketrel opened 6 months ago

Ketrel commented 6 months ago

Please confirm the following points:

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.