VMWare and sound device
I am trying to get my sound card to work on vmware, i set the sound card as autodetect but no luck.
I don't know if it helps but all my progs use alsa to play sound? so what do i have to give as the device path for vmware to find my sound card? |
Are you talking about a vmware guest OS using the same model sound card as installed? If so as far as I know the guest OS use a virtual generic sound device and then vmware transfer to the real sound device.
If normal linux sound is fine and the vmware has no sound then maybe you may need to configure a dmix setup for your sound card. Search here for dmix for info. Brian |
yeah what i meant is that vmware cannot detect a sound card installed on my pc/linux, but in fact sounds works well on linux (my host os).
Isn't the sound card usually something like /dev/dsp or /dev/snd ?? Does suse deal with it differently? |
Have you installed the vmware-tools for the guest OS? If guest tools exist for the OS. Did not say which guest OS you were running. Been a while since setting up a guest OS under vmware host Linux. Haven't needed a new guest for about 3 years.
As far as I know all linux distro use the device block /dev/dsp for main sound output. Now the guest OS will not not see the real sound card on the machine. The guest is running in a virtual machine enviroment and only sees that the virtual bios and hardware that is defined. Brian |
From VMware manual,
Quote:
I guess third time is the charm for NDR008 to understand that VMware does not handle PCI devices. Soon VMware will handle PCI and PCIe devices directly when virtual machine extensions starts to be used extensively by chipset and manufactures that makes expansion cards. |
vmware uses the old OSS drivers. This means it wants the whole soundcard. If you're using gnome or KDE, there'll probably already be a sounds demon attached to the sound ward, and that will prevent vmware from being able to use the soundcard.
Disable the sound demon, make sure no programs are using the sound card (that includes flash player in web pages, music players and so on), and then start vmware. The old OSS drivers are a pain in the backside for this reason, as are sound demons. |
matthewg42 is the only one who understood what i was saying.
I KNOW that vmware doesn't handle the pci devices. It will act as an application on the host os, and pretend to be a computer for the guest os. when guest os does something like play a sound file, vmware will act as an application and make the host os play the sound. I have used vmware before but in the reversed situation. i wanted to run windows XP on linux. My problem was simple, when I was setting up the virtual devices for my guest os, i selected auto detect for everything, but sound didn't work, on booting the guest os it would say no sound card detected. and the vmware player would show a small cross on the speaker symbol in the bottom right. |
For OSS (Open Sound System), it depends on the sound card. If the sound card has hardware mixing, there will not be any problems playing multiple sound streams. For a sound card that does not have hardware mixing, you will have to setup software mixing which is not transparent with each program and the program is picky on what options you used to setup software mixing. Majority of the distributions uses artsd which creates a lot of problems and it is worst than other software mixer. Other software mixing are esound (Enlightened Sound Daemon), ALSA's (Advanced Linux Sound Architecture) dmix library, and PulseAudio (aka Polypaudio).
VMware is an application but no it does not play sounds as you just stated. It sends the audio in chunks or packets, but does not act like a sound player. BTW, I prefer a long post instead of a few sentences. Your first post was not detail enough and it is like pulling teeth just to get the information. I thought you did not know because your second post states. Quote:
|
ok, so, i am guessing my laptop doesn't support hardware mixing - but ALSA is being used, so how to do I tell vmware to use my ALSA device?
Thanks. |
You can not. VMware for Linux only can do OSS. Hopefully, their next version will be using OpenSDL, so the virtual machine can render 3D, provide better fullscreen support, and give us options of sound architecture like ALSA. Right now, you can try an experimental patch that is wrapper that outputs to artsd or esound.
Information about the wrapper: http://www.gentoo-portage.com/app-emulation/vmware-dsp Direct connection to the wrapper and other VMware software: http://ftp.cvut.cz/vmware/ |
All times are GMT -5. The time now is 07:22 PM. |