mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-09-18 09:10:50 +02:00
Fixed bug where requested port could overrun HPI_MAX_NODES.
This commit is contained in:
parent
10b08d65a8
commit
6e2d97e4e2
@ -18055,3 +18055,5 @@
|
|||||||
* Removed the 'RDSvc::ImportOs' enumeration.
|
* Removed the 'RDSvc::ImportOs' enumeration.
|
||||||
* Removed the 'Windows Import Path' and 'Windows Preimport Command'
|
* Removed the 'Windows Import Path' and 'Windows Preimport Command'
|
||||||
fields from the 'Edit Service' dialog in rdadmin(1).
|
fields from the 'Edit Service' dialog in rdadmin(1).
|
||||||
|
2018-11-23 Patrick Linstruth <patrick@deltecent.com>
|
||||||
|
* Fixed bug where requested port could overrun HPI_MAX_NODES.
|
||||||
|
@ -189,36 +189,48 @@ bool RDHPISoundCard::setClockSource(int card,RDHPISoundCard::ClockSource src)
|
|||||||
|
|
||||||
bool RDHPISoundCard::haveTimescaling(int card) const
|
bool RDHPISoundCard::haveTimescaling(int card) const
|
||||||
{
|
{
|
||||||
|
if(card>=HPI_MAX_ADAPTERS) return false;
|
||||||
|
|
||||||
return timescale_support[card];
|
return timescale_support[card];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool RDHPISoundCard::haveInputVolume(int card,int stream,int port) const
|
bool RDHPISoundCard::haveInputVolume(int card,int stream,int port) const
|
||||||
{
|
{
|
||||||
|
if(card>=HPI_MAX_ADAPTERS||stream>=HPI_MAX_STREAMS||port>=HPI_MAX_NODES) return false;
|
||||||
|
|
||||||
return input_stream_volume[card][stream][port];
|
return input_stream_volume[card][stream][port];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool RDHPISoundCard::haveOutputVolume(int card,int stream,int port) const
|
bool RDHPISoundCard::haveOutputVolume(int card,int stream,int port) const
|
||||||
{
|
{
|
||||||
|
if(card>=HPI_MAX_ADAPTERS||stream>=HPI_MAX_STREAMS||port>=HPI_MAX_NODES) return false;
|
||||||
|
|
||||||
return output_stream_volume[card][stream][port];
|
return output_stream_volume[card][stream][port];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool RDHPISoundCard::haveInputLevel(int card,int port) const
|
bool RDHPISoundCard::haveInputLevel(int card,int port) const
|
||||||
{
|
{
|
||||||
|
if(card>=HPI_MAX_ADAPTERS||port>=HPI_MAX_NODES) return false;
|
||||||
|
|
||||||
return input_port_level[card][port];
|
return input_port_level[card][port];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool RDHPISoundCard::haveOutputLevel(int card,int port) const
|
bool RDHPISoundCard::haveOutputLevel(int card,int port) const
|
||||||
{
|
{
|
||||||
|
if(card>=HPI_MAX_ADAPTERS||port>=HPI_MAX_NODES) return false;
|
||||||
|
|
||||||
return output_port_level[card][port];
|
return output_port_level[card][port];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool RDHPISoundCard::haveInputStreamVOX(int card,int stream) const
|
bool RDHPISoundCard::haveInputStreamVOX(int card,int stream) const
|
||||||
{
|
{
|
||||||
|
if(card>=HPI_MAX_ADAPTERS||stream>=HPI_MAX_STREAMS) return false;
|
||||||
|
|
||||||
return input_stream_vox[card][stream];
|
return input_stream_vox[card][stream];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user