Skip to content
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

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

Open
2 tasks done
Ketrel opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Ketrel
Copy link

Ketrel commented May 13, 2024

Please confirm the following points:

  • This report is NOT about the Android apps in the Play Store
  • 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 Ketrel added the bug Something isn't working label May 13, 2024
@kblaschke kblaschke transferred this issue from projectM-visualizer/projectm May 14, 2024
@MadMartian
Copy link

MadMartian commented Mar 11, 2025

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants