-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2394,7 +2394,8 @@ | |
<dependency type="visible"> | ||
<and> | ||
<condition setting="audiooutput.passthrough" operator="is">true</condition> | ||
<condition on="property" name="aesettingvisible" setting="audiooutput.config">audiooutput.passthrough</condition> | ||
<condition on="property" name="aesettingvisible" setting="audiooutput.config">audiooutput.eac3passthrough</condition> | ||
<condition on="property" name="aesettingvisible" setting="audiooutput.passthroughdevice">audiooutput.eac3passthrough</condition> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fritsch
|
||
</and> | ||
</dependency> | ||
</dependencies> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,30 @@ bool CActiveAESink::HasPassthroughDevice() | |
return false; | ||
} | ||
|
||
bool CActiveAESink::SupportsFormat(const std::string &device, AEDataFormat format) | ||
{ | ||
std::string dev = device; | ||
std::string dri; | ||
CAESinkFactory::ParseDevice(dev, dri); | ||
for (AESinkInfoList::iterator itt = m_sinkInfoList.begin(); itt != m_sinkInfoList.end(); ++itt) | ||
{ | ||
for (AEDeviceInfoList::iterator itt2 = itt->m_deviceInfoList.begin(); itt2 != itt->m_deviceInfoList.end(); ++itt2) | ||
{ | ||
CAEDeviceInfo& info = *itt2; | ||
if (info.m_deviceName == dev) | ||
This comment has been minimized.
Sorry, something went wrong.
fritsch
|
||
{ | ||
AEDataFormatList::iterator itt3; | ||
itt3 = find(info.m_dataFormats.begin(), info.m_dataFormats.end(), format); | ||
if (itt3 != info.m_dataFormats.end()) | ||
return true; | ||
else | ||
return false; | ||
} | ||
} | ||
} | ||
return false; | ||
} | ||
|
||
enum SINK_STATES | ||
{ | ||
S_TOP = 0, // 0 | ||
|
That looks quite odd with the eac3 passthrough device