Page 1 of 5

Discuss: Mac OS X guest sound support driver

Posted: 12. May 2010, 06:40
by OmegaX
[modedit]This howto is now available at http://forums.virtualbox.org/viewtopic.php?f=30&t=33358. This is now left for discussion.[/modedit]

Re: Mac OS X guest sound support for Leopard, Snow Leopard guest

Posted: 12. May 2010, 09:38
by notbad
is the sound good? bcs i have installed such an kext but the sound is bad for me. is this kext someway patched?

Re: Mac OS X guest sound support for Leopard, Snow Leopard guest

Posted: 12. May 2010, 09:47
by OmegaX
notbad wrote:is the sound good? bcs i have installed such an kext but the sound is bad for me. is this kext someway patched?
Sound quality is perfect for me, played music through it to test it, input(mic) works also.
This is the AC97 drivers compiled from Darwin source patched specifically for the AC97 sound device VirtualBox emulates.

Re: Mac OS X guest sound support for Leopard, Snow Leopard guest

Posted: 12. May 2010, 09:53
by notbad
thanks I will try :wink:

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 15. May 2010, 01:56
by Kariddi
The audio quality is bad for me.

I'm using it on MacOSX 10.6.3 and only one speaker works. The audio also crackles a lot.

Any suggestion?

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 15. May 2010, 03:53
by takwing
Are you using v3.2.0 beta 3?
Would you mind following my guide to install SL again and see if that works?

http://www.takwing.idv.hk/tech/virtual/ ... index.html

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 15. May 2010, 05:45
by OmegaX
Kariddi wrote:The audio quality is bad for me.

I'm using it on MacOSX 10.6.3 and only one speaker works. The audio also crackles a lot.

Any suggestion?
I'm not sure, I haven't been able to recreate that problem but i've seen a few people have it, for most it seems to be working fine.
are you using NullCPUPowerManagement.kext as well? if not it might help to install it.

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 18. May 2010, 22:12
by paulscode
This doesn't seem to work for me. My host is Ubuntu Lucid 64-bit, VB is 3.2 Beta2, guest is Snow Leopard 10.6.3. I tried both the package installer method and the manual install method. In both cases, the guest freezes when shutting down, requiring me to power it off manually. After firing back up, there is still no sound and the System Preferences->Sound window shows "No output devices found".

Note, my Snow Leopard guest is running in 64-bit mode (seems to be required for some reason, probably since the host is 64-bit). Do you know if that could be causing a problem?

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 19. May 2010, 01:05
by OmegaX
paulscode wrote:This doesn't seem to work for me. My host is Ubuntu Lucid 64-bit, VB is 3.2 Beta2, guest is Snow Leopard 10.6.3. I tried both the package installer method and the manual install method. In both cases, the guest freezes when shutting down, requiring me to power it off manually. After firing back up, there is still no sound and the System Preferences->Sound window shows "No output devices found".

Note, my Snow Leopard guest is running in 64-bit mode (seems to be required for some reason, probably since the host is 64-bit). Do you know if that could be causing a problem?
I forgot to mention this but the driver is only 32-bit, thats why it's not loading when you're in 64-bit mode. I'm going to try to work on a 64-bit compatible driver but for now you could run in 32-bit to get sound support working, you aren't required to run the guest as 64-bit on 64-bit hardware, I run mine in 32-bit on my 64-bit Core 2 Duo system.

I'll edit the topic to make it known it's currently 32-bit only.

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 19. May 2010, 01:07
by paulscode
Awesome, thanks much!

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 19. May 2010, 22:28
by Sasquatch
Can you also provide the source code of the driver, so that the devs can possibly use it for Guest Additions (if they are going to add audio to it)?

In the mean time, I think this is a great addition and will therefore sticky this thread.

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 21. May 2010, 04:00
by OmegaX
Sasquatch wrote:Can you also provide the source code of the driver, so that the devs can possibly use it for Guest Additions (if they are going to add audio to it)?

In the mean time, I think this is a great addition and will therefore sticky this thread.
Thank you, I'll provide all the necessary info for building the driver shortly.

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 23. May 2010, 14:27
by Technologov
Having AC97 driver is very favorable development.

OmegaX: Which community are you come from? OSx86, or from VBox OSE, or from Oracle, or ... ?

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 23. May 2010, 18:19
by OmegaX
Technologov wrote:Having AC97 driver is very favorable development.

OmegaX: Which community are you come from? OSx86, or from VBox OSE, or from Oracle, or ... ?
I guess you could say i'm from OSx86 but posting this extension there was my first post in years of inactivity.

Re: Mac OS X guest sound support driver UPDATE [See Attachment]

Posted: 24. May 2010, 11:05
by takwing
Omega,

I got some information that you may find interesting.

I have tried your NullCPUPowerManagement kext installation package on my existing SL VM (which has sound working by using your audio driver). Installation of NullCPUPowerManagement kext is find (as reported). After I reboot, I find that my sound does not work perfectly anymore.... there is only sound from the right channel (if I remember correctly, this has been reported by one user also) and the sound interruptions issue reoccurs again!

Trying to solve this problem, I have tried to
- reinstall the audio driver by using the installation package. Installation is reported to be OK, but after reboot, the sound is not improved.
- hopefully, I have take a snapshot installing and testing the audio dirver... and so I restore that snapshot.
I boot up the machine again and to my surprise, the problem is not solved! (I previously think that restoring a snapshot is a MUST-WORK solution.)

The sound is still not working perfectly at this moment. I have taken a snapshot of the boot up screen and I wonder iif the 2 lines that are related to audio driver expected or not. Sorry that I really cannot tell if these 2 lines are in fact there even when the audio is working perfectly.

Besides, I have tried to "tune" the left-right balance of the sound volume in MacOS and have the following findings:
- when I move the slider to the right a little bit, sounds are coming out from my left speaker (I am sure that the left, right channel of my system is correct as I have verified this in Windows)
- when I move the slider to the farmost right, there is no sounds coming out from both speaker
- when I move the slider to the center, or a little bit to the left, sounds are coming out from my right speaker (I am sure that the left, right channel of my system is correct as I have verified this in Windows)
- when I move the slider to the farmost left, there is no sounds coming out from both speaker