lmms icon indicating copy to clipboard operation
lmms copied to clipboard

When CPU is full, sound/voice lost

Open NORYOM opened this issue 3 years ago • 5 comments

win7, LMMS version is 1.2.2 (win32/x86_64, Qt 5.4.2, GCC 4.9.4 20150716 (prerelease)) also happened in version lmms-1.3.0-alpha.1.102+g89fc6c960 VST plugin: DSK AkoustiK KeyZ and DSK The Grand.

I created an project, when playing the music and CPU goes to FULL, the voice get choke and mute (lost the sound, no sound output)

2022-11-29_194130

2022-11-29_194747

2022-11-29_195726

please don't tell me to change my laptop :(

NORYOM avatar Nov 29 '22 11:11 NORYOM

Try to close other programs when rendering sound we dont have something other solutions

hyeonsu06 avatar Dec 03 '22 00:12 hyeonsu06

I also test on my desktop win 10 with: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz 3.90 GHz RAM 8.00 GB

it happened as following step: 1, play a track for several seconds then PAUSE 2, open other application like browse web page or send mail or open an chat window 3, stay on GUI of LMMS and will see the status of CPU is changing, it grow up slowly to yellow then get red 4, when CPU is full(red) play track again, there is no sound/voice output

so it's not problem of sound rendering, it should be something wrong with CPU or memery processing.

NORYOM avatar Dec 14 '22 07:12 NORYOM

This is intended behaviour: computers have a limit to their processing power, so once enough notes are played, LMMS can no longer generate audio fast enough to play it back in real time. This will result in a stuttering sound (known as a "buffer underrun"), which is potentially damaging to audio equipment. As a safety measure, LMMS will stop accepting additional notes once it detects that it is getting close to the limit of what it can play. Exported tracks should be unaffected, since there is no need to generate the audio in real time - the DAW can take as long as it needs to play all the notes in the song.

To work around this, you'll need to avoid using too much CPU power with other applications. Also consider increasing the buffer size in LMMS: this will help it use the CPU more efficiently, and smooth out intermittent spikes in CPU usage.

DomClark avatar Dec 16 '22 18:12 DomClark

This is intended behaviour: computers have a limit to their processing power, so once enough notes are played, LMMS can no longer generate audio fast enough to play it back in real time. This will result in a stuttering sound (known as a "buffer underrun"), which is potentially damaging to audio equipment. As a safety measure, LMMS will stop accepting additional notes once it detects that it is getting close to the limit of what it can play. Exported tracks should be unaffected, since there is no need to generate the audio in real time - the DAW can take as long as it needs to play all the notes in the song.

To work around this, you'll need to avoid using too much CPU power with other applications. Also consider increasing the buffer size in LMMS: this will help it use the CPU more efficiently, and smooth out intermittent spikes in CPU usage.

So this is not a bug ? :)

shashwat-chawla avatar Dec 22 '22 22:12 shashwat-chawla

So this is not a bug ? :)

That the sound cuts out when the computer resources are used up... nope. ;) Looking at the picture I'd say the issue is something else as it's not reasonable that just two channels would use up all the oomph of the machine.

@NORYOM If you're up to it you should try the latest development releases. The release you're using is three years old now. Here: https://lmms.io/download#windows Try one of the purple links saying 'Nightly'.

zonkmachine avatar Apr 15 '24 18:04 zonkmachine