*/
#define wxOSX_USE_QUICKTIME 1
-#define wXOSX_USE_AUDIOTOOLBOX 0
+#define wxOSX_USE_AUDIOTOOLBOX 0
#endif
/* _WX_OSX_CARBON_CHKCONF_H_ */
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
#define wxOSX_USE_QUICKTIME 0
- #define wXOSX_USE_AUDIOTOOLBOX 1
+ #define wxOSX_USE_AUDIOTOOLBOX 1
#else // platform < 10.5
#define wxOSX_USE_QUICKTIME 1
- #define wXOSX_USE_AUDIOTOOLBOX 0
+ #define wxOSX_USE_AUDIOTOOLBOX 0
#endif
/*
#define wxHAS_OPENGL_ES
#define wxOSX_USE_QUICKTIME 0
-#define wXOSX_USE_AUDIOTOOLBOX 1
+#define wxOSX_USE_AUDIOTOOLBOX 1
/*
* turning off capabilities that don't work under iphone yet
#if wxUSE_SOUND
-#if wxOSX_USE_AUDIOTOOLBOX
-
#include "wx/sound.h"
+#if wxOSX_USE_AUDIOTOOLBOX
+
#ifndef WX_PRECOMP
#include "wx/object.h"
#include "wx/string.h"
#include "wx/file.h"
+#include "wx/osx/private.h"
+
+#include <AudioToolbox/AudioToolbox.h>
+
class wxOSXAudioToolboxSoundData : public wxSoundData
{
public:
}
}
-bool wxOSXAudioToolboxSoundData::DoPlay(unsigned flags) const
+bool wxOSXAudioToolboxSoundData::Play(unsigned flags)
{
Stop();
return true;
}
+bool wxSound::Create(int size, const wxByte* data)
+{
+ return false;
+}
+
+bool wxSound::Create(const wxString& fileName, bool isResource)
+{
+ if ( isResource )
+ return false;
+
+
+ m_data = new wxOSXAudioToolboxSoundData(fileName);
+ return true;
+}
+
#endif // wxOSX_USE_AUDIOTOOLBOX
#endif //wxUSE_SOUND