Debian VM Sound problem

New to Debian (Or Linux in general)? Ask your questions here!

Debian VM Sound problem

Postby gavroche » 2020-06-05 09:11

Hi there,
I'm running debian on a vm for a project, and I got a sound issue. When I am playing a sound (with aplay or with the graphical music player), what comes out of the speaker is bearly recognizable. I've tried to mess with the alsamixer and nothing worked. I've tried to use sox as a player, didn't work either. I've tried to edit the VM config, add more processors, more cores, more ram, tried different things with the soundcard settings. Nothing worked.
Any idea why it doesn't work? Any idea on how to fix it?
Many thanks §
gavroche
 
Posts: 3
Joined: 2020-06-05 09:04

Re: Debian VM Sound problem

Postby Dai_trying » 2020-06-05 10:36

I would guess (as you don't give much information on what you are actually trying to play) that you are trying to play an mp3 file? This has been problematic for me in the past and I found mpg123 to be more suitable (ootb) for this,
It could also be down to needing some additional parameters which are listed in
Code: Select all
man aplay
Dai_trying
 
Posts: 926
Joined: 2016-01-07 12:25

Re: Debian VM Sound problem

Postby gavroche » 2020-06-05 11:09

I'm willing to play an mp3 file indeed. What's weird is that it seems to happen no matter the mp3 player I use....
I don't understand what's usefull in the aplay manual.
Here is a recording of the sound coming out of the computer (using mpg123)
https://drive.google.com/file/d/19JFHJX ... p=drivesdk
gavroche
 
Posts: 3
Joined: 2020-06-05 09:04

Re: Debian VM Sound problem

Postby Dai_trying » 2020-06-05 13:47

Have you tried a known working mp3 file? Is it possible for you to have a corrupt file as I have not had mpg123 fail to play before.
Dai_trying
 
Posts: 926
Joined: 2016-01-07 12:25

Re: Debian VM Sound problem

Postby gavroche » 2020-06-05 14:07

Yes I have. I even tried to change the mp3 file, but it doesn't work...
gavroche
 
Posts: 3
Joined: 2020-06-05 09:04

Re: Debian VM Sound problem

Postby Dai_trying » 2020-06-05 15:16

I haven't come across this particular situation before so not sure what to advise, I would imagine somebody with better knowledge of audio issues would be best to advise on this.

One thing you could post to help would be your sources.list, I'm wondering if there is a problem with a package mismatch somewhere.
Dai_trying
 
Posts: 926
Joined: 2016-01-07 12:25

Re: Debian VM Sound problem

Postby CwF » 2020-06-05 17:47

I have seen this, can't pin it down. I have had vm's loose sync and stutter after playing fine. Also have had certain programs do it worse than others. This is an issue that can be affected by hyperthreading. It is best to do the opposite of what you did, more won't help - likely less will! revamp it to 1 cpu and above 1G memory doesn't matter much unless the vm really is a pig. I see this more on lower clock machines. What emulated sound card are you using and how does it report in the guest?

Try using mpv and starting from a terminal may give useful info.
CwF
 
Posts: 691
Joined: 2018-06-20 15:16


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable