fix midi issue with Mac
This commit is contained in:
@@ -84,7 +84,7 @@ void RtMidi :: error( RtError::Type type, std::string errorString )
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::cerr << '\n' << errorString << "\n\n";
|
std::cerr << '\n' << errorString << "\n\n";
|
||||||
throw RtError( errorString, type );
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2544,7 +2544,10 @@ protected:
|
|||||||
|
|
||||||
HRESULT hr = DeviceIoControlKsProperty(ksProperty, pvValue, cbValue);
|
HRESULT hr = DeviceIoControlKsProperty(ksProperty, pvValue, cbValue);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
throw ComException("CKsObject::SetProperty: could not set property", hr);
|
{
|
||||||
|
printf("CKsObject::SetProperty: could not set property");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -2599,7 +2602,10 @@ public:
|
|||||||
&ulReturned,
|
&ulReturned,
|
||||||
NULL);
|
NULL);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
throw ComException("CKsFilter::GetPinProperty: failed to retrieve property", hr);
|
{
|
||||||
|
printf("CKsFilter::GetPinProperty: failed to retrieve property");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
@@ -2625,7 +2631,10 @@ public:
|
|||||||
&cbMultipleItem,
|
&cbMultipleItem,
|
||||||
NULL);
|
NULL);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
throw ComException("CKsFilter::GetPinPropertyMulti: cannot get property", hr);
|
{
|
||||||
|
printf("CKsFilter::GetPinPropertyMulti: cannot get property");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
*ppKsMultipleItem = (PKSMULTIPLE_ITEM) new BYTE[cbMultipleItem];
|
*ppKsMultipleItem = (PKSMULTIPLE_ITEM) new BYTE[cbMultipleItem];
|
||||||
|
|
||||||
@@ -2640,7 +2649,10 @@ public:
|
|||||||
&ulReturned,
|
&ulReturned,
|
||||||
NULL);
|
NULL);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
throw ComException("CKsFilter::GetPinPropertyMulti: cannot get property", hr);
|
{
|
||||||
|
printf("CKsFilter::GetPinPropertyMulti: cannot get property");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string const& GetFriendlyName() const
|
std::string const& GetFriendlyName() const
|
||||||
|
|||||||
Reference in New Issue
Block a user