[mythtv] Mac OS X patch 20
Nigel Pearson
nigel at ind.tansu.com.au
Fri Jul 30 00:23:26 EDT 2004
Mac OS X does not have sys/soundcard.h, a mixer device, or ioctls
to control the volume thereof, so #ifndef _WIN32 is inappropriate
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.macosx.20
Type: application/octet-stream
Size: 1361 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040730/939b4763/patch.macosx.obj
-------------- next part --------------
Discussion:
A) #ifdef __linux__
may need to become
#if defined(__linux__) || defined(__FreeBSD__)
but I am not sure that *BSD have sys/soundcard.h,
a mixer, or those ioctls
B) I am still writing Mac OS X audio output (audiooutputdarwin.cpp & h),
but since there is no hard-coded device for audio, the code is very
different to the other outputs' (e.g. it needs to get a list of all
audio-capable devices, and select one matching relevant criteria).
For volumecontrol.cpp to manipulate the volume of the correct device,
it would probably need to call some methods in the AudioOutputDarwin
class.
1) Does this seem reasonable? (given that none of the
other audio classes have methods to control volume)
2) Why does MythTV use a mixer device?
Do people really have other programs generating sound
at the same time as they are watching TV?
--
Nigel Pearson, nigel at ind.tansu.com.au | "Now the world has gone to bed,
Telstra BI&D, Sydney, Australia | Darkness won't engulf my head,
Office: 8255 4222 Fax: 8255 3153 | I can see by infrared,
Mobile: 0408 664435 Home: 9792 6998 | How I hate the night." -Marvin
More information about the mythtv-dev
mailing list