What playback method are you using? Settings → Playback. Try Pulse Audio or ALSA if you’re not already. For me it plays with either of them. The Qt Multimedia backend is not very high performance, but it can work with smaller files and larger buffer sizes.
Hello, thanks for the tip. ALSA and OSS (Open Sound System) return an error and they can’t be used, but I can use Pulse Audio which is much better.
Using Pulse Audio the playback is smooth, but the UI is very slow… it takes 2-3 seconds to open the menus (File, Edit, View, …). It’s a good performance improvement, but the software is still not usable.
It has a huge memory usage
I’ve also tried to install flatpak but the nightly returns an error. FYI:
kf.dbusaddons: Failed to register name 'org.kde.kwave' with DBUS - does this process have permission to use the name, and do no other processes own it already?
please consider that I didn’t have flatpak installed so I may have some package missing
I wouldn’t expect OSS to work unless you intentionally set up your system to use it. OSS has been deprecated on Linux for many years, replaced by ALSA. I’m curious what was the error with ALSA?
Someday™ I want to look into the UI performance while playing. I’m guessing it’s probably redrawing or recalculating more than it would have to each screen update. The waveform display and playback position line are jumpy also. I just do my work while it’s not playing.
Kwave loads the whole (uncompressed) file into memory. It would be good if it could stream the file, but I think that would involve rewriting large parts of the codebase.
Interesting, I haven’t seen that error. Did you have another instance of Kwave already open?
I tried to connect the alsa snap interface to Kwave but it fails
sudo snap connect kwave:alsa
error: snap "kwave" has no plug named "alsa"
Anyway, it’s not a big issue because I tested both systems (pulseaudio and alsa) in the flatpak and I can’t notice any difference on performance. They are similar so I can use pulse audio in the snap package, ignoring Alsa.
Thanks. I’ve only 8GB of RAM so it may not help, but System Monitor says that I’m only using 5GB out of 8GB (including 1.2GB used by Kwave).
When the playback is stopped, the menus are much more responsive and they open quickly, but moving in the timeline is still slow. If I click on any point of the sound track, I need to wait ~1 second to see the cursor moving to the new point. Not a big issue, I’m just curious if this is related to the uncompressed file or to the low RAM available.
Yes, you are right.
If I try to start Kwave while the Snap is opened, the flatpak doesn’t start and I get the error above.
If I try to start Kwave while the Apt version is openened, the flatpak doesn’t start and I don’t get any message in the terminal. It just closes.
That all sounds like a snap packaging issue. I didn’t do the snap packaging and am not familiar with it, so not sure I can help there.
Actually I think that’s the same issue as the poor UI performance while playing, it’s just taking too much time to redraw the waveform.
Ok, I haven’t used the snap, so that would explain why I haven’t seen that error. Kwave does make sure there is only one instance running. I’m not sure if that’s necessary or not, it could be another instance would overwrite some settings the first instance was using or something.
You’re welcome, and thank you for following up with more details!