LMMS / lmms

Cross-platform music production software
https://lmms.io
GNU General Public License v2.0
8.01k stars 997 forks source link

LMMS uses microphone #7520

Open Positron832Alt opened 2 days ago

Positron832Alt commented 2 days ago

System Information

Windows 10 22H2

LMMS Version(s)

1.3.0-alpha.1.682+g58ce9b476. Still exists in 1.3.0-alpha.1.699+g6a7b23b27.

Most Recent Working Version

Shortly after LOMM was added was the last version I used without the bug.

Bug Summary

When opening LMMS the microphone icon in the taskbar appears. Hovering over it displays a tooltip saying LMMS is using the microphone. Note that I use a laptop.

Expected Behaviour

LMMS should not use the microphone.

Steps To Reproduce

  1. Open LMMS
  2. Observe the microphone icon in the taskbar appear

Logs

No logs.

Screenshots / Minimum Reproducible Project

No response

Please search the issue tracker for existing bug reports before submitting your own.

michaelgregorius commented 2 days ago

@Positron832Alt, can you please check the "Audio" section in the settings ("Edit > Settings" in the main menu) and report what driver you are using? I assume that it will be SDL and look somewhat like as follows:

7520-AudioConfiguration

Can you then please check what options are shown for you under "Input device"? I assume that the "[System default]" on your system will be the microphone. If there are several options available in the combo box you might be able switch to an input which is not the microphone. As far as I know it is not possible to select something like "None" for the SDL driver.

Positron832Alt commented 2 days ago

bild It is indeed SDL. The only input device option besides [System Default] is the microphone.

michaelgregorius commented 1 day ago

Because it's the only option it's also the system default. Unfortunately, it will therefore always be used as the input device because there is no "None" option.

Positron832Alt commented 1 day ago

Before I close the issue then, I'm just wondering, why wasn't this happening before?

michaelgregorius commented 1 day ago

The SDL input feature seems to be fairly new. I have just checked and LMMS 1.2.2 does not have it.

Are you sure that it does not happen with a version from shortly after LOMM has been introduced? LOMM has been introduced to the code base on November 10th, 2023 (see 89c98a77a51).

Here's the history of the SDL driver implementation: https://github.com/LMMS/lmms/commits/master/src/core/audio/AudioSdl.cpp

If I check a version of the SDL driver from before November 10th, e.g. https://github.com/LMMS/lmms/blob/3aed361b82dba6246119c8fc9d929fd9a779a647/src/core/audio/AudioSdl.cpp, then it also tries to open the default input device. So the usage of the microphone should also be indicated with that version.

I also wonder if the issue should really be closed. It might be used to discuss if there should be an option to disable audio input in the driver(s).