Cocoa Port:

- Fix some compatibility issues with OS X v10.5 Leopard.
This commit is contained in:
rogerman 2015-10-10 20:16:46 +00:00
parent d9cc320c4e
commit 21d9294697
5 changed files with 24435 additions and 17625 deletions

View File

@ -142,7 +142,6 @@ public:
- (void)dealloc
{
NDS_3D_ChangeCore(CORE3DLIST_NULL);
DestroyOpenGLRenderer();
delete gpuEvent;
@ -721,7 +720,9 @@ void GPUEventHandlerOSX::DidFrameEnd(bool isFrameSkipped)
if (!isFrameSkipped)
{
for (CocoaDSOutput *cdsOutput in this->_cdsOutputList)
NSMutableArray *outputList = this->_cdsOutputList;
for (CocoaDSOutput *cdsOutput in outputList)
{
if ([cdsOutput isKindOfClass:[CocoaDSDisplay class]])
{

View File

@ -91,8 +91,13 @@ CoreAudioInput::CoreAudioInput()
error = NewAUGraph(&_auGraph);
error = AUGraphOpen(_auGraph);
#if defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
error = AUGraphAddNode(_auGraph, (AudioComponentDescription *)&formatConverterDesc, &_auFormatConverterNode);
error = AUGraphAddNode(_auGraph, (AudioComponentDescription *)&outputDesc, &_auOutputNode);
#else
error = AUGraphAddNode(_auGraph, (ComponentDescription *)&formatConverterDesc, &_auFormatConverterNode);
error = AUGraphAddNode(_auGraph, (ComponentDescription *)&outputDesc, &_auOutputNode);
#endif
error = AUGraphConnectNodeInput(_auGraph, _auFormatConverterNode, 0, _auOutputNode, 0);
error = AUGraphNodeInfo(_auGraph, _auFormatConverterNode, NULL, &_auFormatConverterUnit);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -153,6 +153,7 @@ class OGLVideoOutput;
- (IBAction) copy:(id)sender;
- (IBAction) changeHardwareMicGain:(id)sender;
- (IBAction) changeHardwareMicMute:(id)sender;
- (IBAction) changeVolume:(id)sender;
- (IBAction) toggleKeepMinDisplaySizeAtNormal:(id)sender;
- (IBAction) toggleStatusBar:(id)sender;