2004-02-10 01:23:53 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2011-02-25 01:05:47 +03:00
|
|
|
// $Id$
|
2004-02-10 01:23:53 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2009-02-08 12:05:52 +03:00
|
|
|
//
|
2011-01-26 02:29:08 +03:00
|
|
|
// Copyright (C) 2004-2011 The Bochs Project
|
2009-02-08 12:05:52 +03:00
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2004-02-10 01:23:53 +03:00
|
|
|
|
|
|
|
// This file (SOUNDOSX.CC) written and donated by Brian Huffman
|
|
|
|
|
|
|
|
#ifdef PARANOID
|
|
|
|
#include <MacTypes.h>
|
|
|
|
#endif
|
2005-12-10 21:37:35 +03:00
|
|
|
|
2011-02-15 00:14:20 +03:00
|
|
|
#include "iodev.h"
|
2004-02-10 01:23:53 +03:00
|
|
|
|
2011-03-19 15:57:13 +03:00
|
|
|
#if defined(macintosh) && BX_SUPPORT_SOUNDLOW
|
2005-12-10 21:37:35 +03:00
|
|
|
|
2011-01-26 02:29:08 +03:00
|
|
|
#define LOG_THIS device->
|
2004-02-10 01:23:53 +03:00
|
|
|
|
2011-02-11 01:58:22 +03:00
|
|
|
#include "soundmod.h"
|
2004-09-05 14:30:19 +04:00
|
|
|
#include "soundosx.h"
|
|
|
|
|
2004-02-10 01:23:53 +03:00
|
|
|
#if BX_WITH_MACOS
|
|
|
|
#include <QuickTimeMusic.h>
|
|
|
|
#else
|
|
|
|
#include <CoreAudio/CoreAudio.h>
|
|
|
|
#include <AudioUnit/AudioUnit.h>
|
|
|
|
#include <AudioToolbox/DefaultAudioOutput.h>
|
|
|
|
#include <AudioToolbox/AudioConverter.h>
|
|
|
|
#include <AudioToolbox/AUGraph.h>
|
|
|
|
#include <QuickTime/QuickTimeMusic.h>
|
|
|
|
#endif
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
OSStatus MyRenderer (void *inRefCon, AudioUnitRenderActionFlags inActionFlags,
|
|
|
|
const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, AudioBuffer *ioData);
|
|
|
|
OSStatus MyACInputProc (AudioConverterRef inAudioConverter, UInt32* outDataSize,
|
|
|
|
void** outData, void* inUserData);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Global variables
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
AUGraph MidiGraph;
|
|
|
|
AudioUnit synthUnit;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_quicktime
|
|
|
|
SndChannelPtr WaveChannel;
|
|
|
|
ExtSoundHeader WaveInfo;
|
|
|
|
ExtSoundHeader WaveHeader[BX_SOUND_OSX_NBUF];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
AudioUnit WaveOutputUnit = NULL;
|
|
|
|
AudioConverterRef WaveConverter = NULL;
|
|
|
|
#endif
|
|
|
|
|
2011-02-11 01:58:22 +03:00
|
|
|
bx_sound_osx_c::bx_sound_osx_c(logfunctions *dev)
|
2011-03-19 15:57:13 +03:00
|
|
|
:bx_sound_lowlevel_c(dev)
|
2004-02-10 01:23:53 +03:00
|
|
|
{
|
|
|
|
MidiOpen = 0;
|
|
|
|
WaveOpen = 0;
|
|
|
|
head = 0;
|
|
|
|
tail = 0;
|
|
|
|
for (int i=0; i<BX_SOUND_OSX_NBUF; i++)
|
|
|
|
WaveLength[i] = 0;
|
2011-01-26 02:29:08 +03:00
|
|
|
BX_INFO(("Sound output module 'osx' initialized"));
|
2004-02-10 01:23:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bx_sound_osx_c::~bx_sound_osx_c()
|
|
|
|
{
|
|
|
|
// nothing for now
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int bx_sound_osx_c::midiready()
|
|
|
|
{
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
2011-02-13 20:26:52 +03:00
|
|
|
int bx_sound_osx_c::openmidioutput(const char *mididev)
|
2004-02-10 01:23:53 +03:00
|
|
|
{
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
ComponentDescription description;
|
|
|
|
AUNode synthNode, outputNode;
|
|
|
|
|
|
|
|
// Create the graph
|
|
|
|
NewAUGraph (&MidiGraph);
|
|
|
|
|
|
|
|
// Open the DLS Synth
|
|
|
|
description.componentType = kAudioUnitComponentType;
|
|
|
|
description.componentSubType = kAudioUnitSubType_MusicDevice;
|
|
|
|
description.componentManufacturer = kAudioUnitID_DLSSynth;
|
|
|
|
description.componentFlags = 0;
|
|
|
|
description.componentFlagsMask = 0;
|
|
|
|
AUGraphNewNode (MidiGraph, &description, 0, NULL, &synthNode);
|
|
|
|
|
|
|
|
// Open the output device
|
|
|
|
description.componentType = kAudioUnitComponentType;
|
|
|
|
description.componentSubType = kAudioUnitSubType_Output;
|
|
|
|
description.componentManufacturer = kAudioUnitID_DefaultOutput;
|
|
|
|
description.componentFlags = 0;
|
|
|
|
description.componentFlagsMask = 0;
|
|
|
|
AUGraphNewNode (MidiGraph, &description, 0, NULL, &outputNode);
|
|
|
|
|
|
|
|
// Connect the devices up
|
|
|
|
AUGraphConnectNodeInput (MidiGraph, synthNode, 1, outputNode, 0);
|
|
|
|
AUGraphUpdate (MidiGraph, NULL);
|
2008-01-27 01:24:03 +03:00
|
|
|
|
2004-02-10 01:23:53 +03:00
|
|
|
// Open and initialize the audio units
|
|
|
|
AUGraphOpen (MidiGraph);
|
|
|
|
AUGraphInitialize (MidiGraph);
|
|
|
|
|
|
|
|
// Turn off the reverb on the synth
|
|
|
|
AUGraphGetNodeInfo (MidiGraph, synthNode, NULL, NULL, NULL, &synthUnit);
|
|
|
|
UInt32 usesReverb = 0;
|
|
|
|
AudioUnitSetProperty (synthUnit, kMusicDeviceProperty_UsesInternalReverb,
|
|
|
|
kAudioUnitScope_Global, 0, &usesReverb, sizeof (usesReverb));
|
|
|
|
|
|
|
|
// Start playing
|
|
|
|
AUGraphStart (MidiGraph);
|
|
|
|
#endif
|
2011-02-11 01:58:22 +03:00
|
|
|
BX_DEBUG(("openmidioutput(%s)", mididev));
|
2004-02-10 01:23:53 +03:00
|
|
|
MidiOpen = 1;
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int bx_sound_osx_c::sendmidicommand(int delta, int command, int length, Bit8u data[])
|
|
|
|
{
|
2011-02-11 01:58:22 +03:00
|
|
|
BX_DEBUG(("sendmidicommand(%i,%02x,%i)", delta, command, length));
|
2004-02-10 01:23:53 +03:00
|
|
|
if (!MidiOpen) return BX_SOUND_OUTPUT_ERR;
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
if (length <= 2) {
|
|
|
|
Bit8u arg1 = (length >=1) ? data[0] : 0;
|
|
|
|
Bit8u arg2 = (length >=2) ? data[1] : 0;
|
|
|
|
MusicDeviceMIDIEvent (synthUnit, command, arg1, arg2, delta);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
MusicDeviceSysEx (synthUnit, data, length);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int bx_sound_osx_c::closemidioutput()
|
|
|
|
{
|
2011-02-11 01:58:22 +03:00
|
|
|
BX_DEBUG(("closemidioutput()"));
|
2004-02-10 01:23:53 +03:00
|
|
|
MidiOpen = 0;
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
AUGraphStop (MidiGraph);
|
|
|
|
AUGraphClose (MidiGraph);
|
|
|
|
#endif
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_quicktime
|
|
|
|
#if BX_WITH_MACOS
|
|
|
|
pascal
|
|
|
|
#endif
|
|
|
|
void WaveCallbackProc (SndChannelPtr chan, SndCommand *cmd)
|
|
|
|
{
|
|
|
|
// a new buffer is available, so increment tail pointer
|
|
|
|
int *tail = (int *) (cmd->param2);
|
|
|
|
(*tail)++;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2011-02-13 20:26:52 +03:00
|
|
|
int bx_sound_osx_c::openwaveoutput(const char *wavedev)
|
2004-02-10 01:23:53 +03:00
|
|
|
{
|
|
|
|
OSStatus err;
|
|
|
|
|
2011-02-11 01:58:22 +03:00
|
|
|
BX_DEBUG(("openwaveoutput(%s)", wavedev));
|
2004-02-10 01:23:53 +03:00
|
|
|
|
|
|
|
// open the default output unit
|
|
|
|
#ifdef BX_SOUND_OSX_use_quicktime
|
|
|
|
err = SndNewChannel (&WaveChannel, sampledSynth, 0, NewSndCallBackUPP(WaveCallbackProc));
|
|
|
|
if (err != noErr) return BX_SOUND_OUTPUT_ERR;
|
|
|
|
#endif
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
err = OpenDefaultAudioOutput (&WaveOutputUnit);
|
|
|
|
if (err != noErr) return BX_SOUND_OUTPUT_ERR;
|
|
|
|
AudioUnitInitialize (WaveOutputUnit);
|
|
|
|
|
|
|
|
// Set up a callback function to generate output to the output unit
|
2004-02-18 21:54:21 +03:00
|
|
|
AudioUnitInputCallback input;
|
|
|
|
input.inputProc = MyRenderer;
|
|
|
|
input.inputProcRefCon = (void *) this;
|
2008-01-27 01:24:03 +03:00
|
|
|
AudioUnitSetProperty (WaveOutputUnit, kAudioUnitProperty_SetInputCallback,
|
2004-02-10 01:23:53 +03:00
|
|
|
kAudioUnitScope_Global, 0, &input, sizeof(input));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
WaveOpen = 1;
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int bx_sound_osx_c::startwaveplayback(int frequency, int bits, int stereo, int format)
|
|
|
|
{
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
static int oldfreq, oldbits, oldstereo, oldformat;
|
|
|
|
AudioStreamBasicDescription srcFormat, dstFormat;
|
|
|
|
UInt32 formatSize = sizeof(AudioStreamBasicDescription);
|
|
|
|
#endif
|
|
|
|
|
2011-02-11 01:58:22 +03:00
|
|
|
BX_DEBUG(("startwaveplayback(%d, %d, %d, %x)", frequency, bits, stereo, format));
|
2004-02-10 01:23:53 +03:00
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_quicktime
|
|
|
|
WaveInfo.samplePtr = NULL;
|
|
|
|
WaveInfo.numChannels = stereo ? 2 : 1;
|
|
|
|
WaveInfo.sampleRate = frequency << 16; // sampleRate is a 16.16 fixed-point value
|
|
|
|
WaveInfo.loopStart = 0;
|
|
|
|
WaveInfo.loopEnd = 0;
|
|
|
|
WaveInfo.encode = extSH; // WaveInfo has type ExtSoundHeader
|
|
|
|
WaveInfo.baseFrequency = 1; // not sure what means. It's only a Uint8.
|
|
|
|
WaveInfo.numFrames = 0;
|
|
|
|
//WaveInfo.AIFFSampleRate = frequency; // frequency as float80
|
|
|
|
WaveInfo.markerChunk = NULL;
|
|
|
|
|
|
|
|
WaveInfo.instrumentChunks = NULL;
|
|
|
|
WaveInfo.AESRecording = NULL;
|
|
|
|
WaveInfo.sampleSize = bits * WaveInfo.numChannels;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
2008-02-16 01:05:43 +03:00
|
|
|
if ((frequency == oldfreq) &&
|
2008-01-27 01:24:03 +03:00
|
|
|
(bits == oldbits) &&
|
2004-02-10 01:23:53 +03:00
|
|
|
(stereo == oldstereo) &&
|
2008-02-16 01:05:43 +03:00
|
|
|
(format == oldformat))
|
2004-02-10 01:23:53 +03:00
|
|
|
return BX_SOUND_OUTPUT_OK; // nothing to do
|
|
|
|
|
|
|
|
oldfreq = frequency;
|
|
|
|
oldbits = bits;
|
|
|
|
oldstereo = stereo;
|
|
|
|
oldformat = format;
|
|
|
|
|
|
|
|
// update the source audio format
|
|
|
|
UInt32 bytes = bits / 8;
|
|
|
|
UInt32 channels = stereo ? 2 : 1;
|
|
|
|
srcFormat.mSampleRate = (Float64) frequency;
|
|
|
|
srcFormat.mFormatID = kAudioFormatLinearPCM;
|
|
|
|
srcFormat.mFormatFlags = kLinearPCMFormatFlagIsPacked;
|
|
|
|
if (format & 1) srcFormat.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
|
|
|
|
srcFormat.mBytesPerPacket = channels * bytes;
|
|
|
|
srcFormat.mFramesPerPacket = 1;
|
|
|
|
srcFormat.mBytesPerFrame = channels * bytes;
|
|
|
|
srcFormat.mChannelsPerFrame = channels;
|
|
|
|
srcFormat.mBitsPerChannel = bytes * 8;
|
|
|
|
|
|
|
|
if (WavePlaying) AudioOutputUnitStop (WaveOutputUnit);
|
|
|
|
if (WaveConverter) AudioConverterDispose (WaveConverter);
|
|
|
|
|
|
|
|
AudioUnitGetProperty (WaveOutputUnit, kAudioUnitProperty_StreamFormat,
|
|
|
|
kAudioUnitScope_Output, 0, &dstFormat, &formatSize);
|
|
|
|
|
|
|
|
AudioConverterNew (&srcFormat, &dstFormat, &WaveConverter);
|
|
|
|
|
|
|
|
if (srcFormat.mChannelsPerFrame == 1 && dstFormat.mChannelsPerFrame == 2) {
|
|
|
|
// map single-channel input to both output channels
|
|
|
|
SInt32 map[2] = {0,0};
|
2008-01-27 01:24:03 +03:00
|
|
|
AudioConverterSetProperty (WaveConverter, kAudioConverterChannelMap,
|
2004-02-10 01:23:53 +03:00
|
|
|
sizeof(map), (void*) map);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (WavePlaying) AudioOutputUnitStart (WaveOutputUnit);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int bx_sound_osx_c::waveready()
|
|
|
|
{
|
|
|
|
// HACK: the -4 is to keep from overwriting buffers that
|
|
|
|
// have been sent, but possibly not yet played. There
|
|
|
|
// should be a better way of doing this.
|
|
|
|
if (WaveOpen && (head - tail < BX_SOUND_OSX_NBUF-4)) {
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
// If buffer is full, make sure sound is playing
|
|
|
|
if (WaveOutputUnit && !WavePlaying) {
|
|
|
|
AudioOutputUnitStart (WaveOutputUnit);
|
|
|
|
WavePlaying = 1;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
return BX_SOUND_OUTPUT_ERR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int bx_sound_osx_c::sendwavepacket(int length, Bit8u data[])
|
|
|
|
{
|
|
|
|
#ifdef BX_SOUND_OSX_use_quicktime
|
|
|
|
SndCommand mySndCommand;
|
|
|
|
#endif
|
|
|
|
|
2011-02-11 01:58:22 +03:00
|
|
|
BX_DEBUG(("sendwavepacket(%d, %p), head=%u", length, data, head));
|
2004-02-10 01:23:53 +03:00
|
|
|
|
|
|
|
// sanity check
|
|
|
|
if ((!WaveOpen) || (head - tail >= BX_SOUND_OSX_NBUF))
|
|
|
|
return BX_SOUND_OUTPUT_ERR;
|
|
|
|
|
|
|
|
// find next available buffer
|
|
|
|
int n = head++ % BX_SOUND_OSX_NBUF;
|
|
|
|
|
|
|
|
// put data in buffer
|
|
|
|
memcpy(WaveData[n], data, length);
|
|
|
|
WaveLength[n] = length;
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_quicktime
|
|
|
|
memcpy(&WaveHeader[n], &WaveInfo, sizeof(WaveInfo));
|
|
|
|
WaveHeader[n].samplePtr = (char *) (WaveData[n]);
|
|
|
|
WaveHeader[n].numFrames = length * 8 / WaveInfo.sampleSize;
|
|
|
|
#endif
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
// make sure that the sound is playing
|
|
|
|
if (!WavePlaying) {
|
|
|
|
AudioOutputUnitStart (WaveOutputUnit);
|
|
|
|
WavePlaying = 1;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_quicktime
|
|
|
|
// queue buffer to play
|
|
|
|
mySndCommand.cmd = bufferCmd;
|
|
|
|
mySndCommand.param1 = 0;
|
|
|
|
mySndCommand.param2 = (long)(&WaveHeader[n]);
|
|
|
|
SndDoCommand(WaveChannel, &mySndCommand, TRUE);
|
|
|
|
|
|
|
|
// queue callback for when buffer finishes
|
|
|
|
mySndCommand.cmd = callBackCmd;
|
|
|
|
mySndCommand.param1 = 0;
|
|
|
|
mySndCommand.param2 = (long)(&tail);
|
|
|
|
SndDoCommand(WaveChannel, &mySndCommand, TRUE);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int bx_sound_osx_c::stopwaveplayback()
|
|
|
|
{
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
int bx_sound_osx_c::closewaveoutput()
|
|
|
|
{
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
if (WavePlaying) AudioOutputUnitStop (WaveOutputUnit);
|
|
|
|
if (WaveConverter) AudioConverterDispose (WaveConverter);
|
|
|
|
if (WaveOutputUnit) CloseComponent (WaveOutputUnit);
|
|
|
|
WavePlaying = 0;
|
|
|
|
WaveOpen = 0;
|
|
|
|
WaveConverter = NULL;
|
|
|
|
WaveOutputUnit = NULL;
|
|
|
|
#endif
|
|
|
|
return BX_SOUND_OUTPUT_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef BX_SOUND_OSX_use_converter
|
|
|
|
OSStatus MyRenderer (void *inRefCon, AudioUnitRenderActionFlags inActionFlags,
|
|
|
|
const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, AudioBuffer *ioData)
|
|
|
|
{
|
|
|
|
UInt32 size = ioData->mDataByteSize;
|
|
|
|
AudioConverterFillBuffer (WaveConverter, MyACInputProc, inRefCon, &size, ioData->mData);
|
|
|
|
return noErr;
|
|
|
|
}
|
|
|
|
|
|
|
|
OSStatus MyACInputProc (AudioConverterRef inAudioConverter,
|
|
|
|
UInt32* outDataSize, void** outData, void* inUserData)
|
|
|
|
{
|
|
|
|
bx_sound_osx_c *self = (bx_sound_osx_c*) inUserData;
|
|
|
|
self->nextbuffer ((int*) outDataSize, outData);
|
|
|
|
return noErr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void bx_sound_osx_c::nextbuffer (int *outDataSize, void **outData)
|
|
|
|
{
|
2011-02-11 01:58:22 +03:00
|
|
|
BX_DEBUG(("nextbuffer(), tail=%u", tail));
|
2004-02-10 01:23:53 +03:00
|
|
|
if (head - tail <= 0) {
|
|
|
|
*outData = NULL;
|
|
|
|
*outDataSize = 0;
|
|
|
|
|
|
|
|
// We are getting behind, so stop the output for now
|
|
|
|
AudioOutputUnitStop (WaveOutputUnit);
|
|
|
|
WavePlaying = 0;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
int n = tail % BX_SOUND_OSX_NBUF;
|
|
|
|
*outData = (void *) (WaveData[n]);
|
|
|
|
*outDataSize = WaveLength[n];
|
|
|
|
tail++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // defined(macintosh)
|