Share

Mini vMac

Tracker: Patches

5 ALSA sound support - ID: 1208755
Last Update: Comment added ( prattp )

Stéphan Kochen reports:

"Attached is a patch against Mini vMac 2.6.1 that
implements ALSA sound support for Linux systems as per
this ToDo item:

'(X) Sound for X, to match Macintosh version. I haven't
looked into this at all yet. I think that sound isn't
part of the X protocol, which means it can't be done in
a way that works on all X systems.'

Unfortunately, as the ToDo says, this won't work
everywhere. It's sufficient for my case, though. :)
Perhaps Mini vMac can be ported to SDL?

I tested this patch both on my on-board AC97 chip as on
the SoundBlaster Live! I have installed, and it seems
to work pretty well. It may not be perfect though, as
ALSA seems to have a complete and utter lack of good
documentation. After getting this to work, most of it
seems to make sense though.

Also, I have no idea how the build system works.
There's three changes that have to be made to get this
to work:
- MySoundEnabled should be defined to 1, of course.
- alsa/asoundlib.h needs to be included.
- '-lasound' needs to be passed to the linker.

Finally, I would've been more comfortable sending this
to a public mailing list or the like, why are you not
using any of the SourceForge services for Mini vMac?"


Paul Pratt ( prattp ) - 2005-05-25 21:07

5

Closed

Accepted

Nobody/Anonymous

None

None

Public


Comments ( 2 )

Date: 2005-06-21 21:50
Sender: prattpProject Admin

Logged In: YES
user_id=163707

This patch has been merged in to the development version (at
"http://minivmac.sourceforge.net/develop/").

I made a few changes to match Mini vMac conventions for
formatting and error handling. Unfortunately I haven't been
able to test it yet, as no version of Linux I have seems to
have working sound in Virtual PC. I think there used to be
sound in earlier versions of Virtual PC. I may try
installing Linux on a real PC sometime. Anyway it compiles
at least. (Though I haven't yet modified setup.c to set up a
project folder for compiling the Linux version with sound.)



Date: 2005-05-25 21:16
Sender: prattpProject Admin

Logged In: YES
user_id=163707

As requested, SourceForge Trackers are turned back on, as
well as the Open Discussion Forum.



Attached File ( 1 )

Filename Description Download
alsaout.patch alsaout.patch Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2005-06-21 21:50 prattp
resolution_id None 2005-06-21 21:50 prattp
close_date - 2005-06-21 21:50 prattp
File Added 135974: alsaout.patch 2005-05-25 21:30 prattp