cwIo.h : Added uiSendMsg(),audioIsEnabled(),audioActiveDeviceCount().
This commit is contained in:
parent
dce0049b76
commit
82b60a873d
25
cwIo.cpp
25
cwIo.cpp
@ -2107,6 +2107,8 @@ namespace cw
|
|||||||
|
|
||||||
ui::ws::releaseArgs(args);
|
ui::ws::releaseArgs(args);
|
||||||
|
|
||||||
|
//ui::enableCache( ui::ws::uiHandle(p->wsUiH) );
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2668,6 +2670,19 @@ cw::rc_t cw::io::midiDeviceSend( handle_t h, unsigned devIdx, unsigned portIdx,
|
|||||||
// Audio
|
// Audio
|
||||||
//
|
//
|
||||||
|
|
||||||
|
bool cw::io::audioIsEnabled( handle_t h )
|
||||||
|
{
|
||||||
|
io_t* p = _handleToPtr(h);
|
||||||
|
for(unsigned devIdx=0; devIdx<p->audioDevN; ++devIdx)
|
||||||
|
{
|
||||||
|
audioDev_t* ad;
|
||||||
|
if((ad = _audioDeviceIndexToRecd(p,devIdx)) != nullptr && ad->activeFl )
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned cw::io::audioDeviceCount( handle_t h )
|
unsigned cw::io::audioDeviceCount( handle_t h )
|
||||||
{
|
{
|
||||||
io_t* p = _handleToPtr(h);
|
io_t* p = _handleToPtr(h);
|
||||||
@ -3728,6 +3743,16 @@ cw::rc_t cw::io::uiSendValue( handle_t h, unsigned uuId, const char* value )
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cw::rc_t cw::io::uiSendMsg( handle_t h, const char* msg )
|
||||||
|
{
|
||||||
|
rc_t rc;
|
||||||
|
ui::handle_t uiH;
|
||||||
|
if((rc = _handleToUiHandle(h,uiH)) == kOkRC )
|
||||||
|
rc = ui::sendMsg(uiH, msg);
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void cw::io::uiReport( handle_t h )
|
void cw::io::uiReport( handle_t h )
|
||||||
{
|
{
|
||||||
ui::handle_t uiH;
|
ui::handle_t uiH;
|
||||||
|
4
cwIo.h
4
cwIo.h
@ -231,7 +231,9 @@ namespace cw
|
|||||||
// Audio
|
// Audio
|
||||||
//
|
//
|
||||||
|
|
||||||
|
bool audioIsEnabled( handle_t h );
|
||||||
unsigned audioDeviceCount( handle_t h );
|
unsigned audioDeviceCount( handle_t h );
|
||||||
|
unsigned audioActiveDeviceCount( handle_t h );
|
||||||
unsigned audioDeviceLabelToIndex( handle_t h, const char* label );
|
unsigned audioDeviceLabelToIndex( handle_t h, const char* label );
|
||||||
const char* audioDeviceLabel( handle_t h, unsigned devIdx );
|
const char* audioDeviceLabel( handle_t h, unsigned devIdx );
|
||||||
rc_t audioDeviceSetUserId( handle_t h, unsigned devIdx, unsigned userId );
|
rc_t audioDeviceSetUserId( handle_t h, unsigned devIdx, unsigned userId );
|
||||||
@ -398,6 +400,8 @@ namespace cw
|
|||||||
rc_t uiSendValue( handle_t h, unsigned uuId, double value );
|
rc_t uiSendValue( handle_t h, unsigned uuId, double value );
|
||||||
rc_t uiSendValue( handle_t h, unsigned uuId, const char* value );
|
rc_t uiSendValue( handle_t h, unsigned uuId, const char* value );
|
||||||
|
|
||||||
|
rc_t uiSendMsg( handle_t h, const char* msg );
|
||||||
|
|
||||||
void uiRealTimeReport( handle_t h );
|
void uiRealTimeReport( handle_t h );
|
||||||
void uiReport( handle_t h );
|
void uiReport( handle_t h );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user