|
From: <pst...@us...> - 2008-05-27 00:41:22
|
Revision: 570
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=570&view=rev
Author: pstieber
Date: 2008-05-26 17:41:21 -0700 (Mon, 26 May 2008)
Log Message:
-----------
Added some code for portmidi access on a Mac.
Modified Paths:
--------------
trunk/jazz/src/Project.cpp
Modified: trunk/jazz/src/Project.cpp
===================================================================
--- trunk/jazz/src/Project.cpp 2008-05-26 23:40:02 UTC (rev 569)
+++ trunk/jazz/src/Project.cpp 2008-05-27 00:41:21 UTC (rev 570)
@@ -40,7 +40,10 @@
#include "WindowsAudioInterface.h"
#elif __WXGTK__
#include "AudioDriver.h"
+#elif __WXMAC__
+#include "PortMidiPlayer.h"
#endif
+
#ifdef DEV_ALSA
#include "AlsaPlayer.h"
#include "AlsaDriver.h"
@@ -160,7 +163,7 @@
//--------------
// Linux drivers
//--------------
-#ifndef __WXMSW__
+#ifdef __WXGTK__
if (gpConfig->GetValue(C_MidiDriver) == eMidiDriverOss)
{
#ifdef DEV_SEQUENCER2
@@ -245,7 +248,7 @@
<< "Jazz will start with no play/record ability"
<< endl;
}
-#endif // !defined(__WXMSW__)
+#endif // defined(__WXGTK__)
#ifdef __WXMSW__
@@ -280,6 +283,17 @@
}
#endif // __WXMSW__
+#ifdef __WXMAC__
+ //------------------
+ // Macintosh Drivers
+ //------------------
+ mpMidiPlayer = new JZPortMidiPlayer(this);
+ if (!mpMidiPlayer->Installed())
+ {
+ cout << "Jazz++ will start with no play/record ability." << endl;
+ }
+#endif // __WXMAC__
+
if (!mpMidiPlayer)
{
mpMidiPlayer = new tNullPlayer(this);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|