コード例 #1
0
ファイル: RecordPage.cpp プロジェクト: AndrewHires/Solo
void CRecordPage::UpdateMeters( void )
/////////////////////////////////////////////////////////////////////////////
{
	int		nDst;
	int		nCtlCount = IDC_RECORD2L_VUMETER - IDC_RECORD1L_VUMETER;
	ULONG	ulValue;

	// go get the VU meters information
	for( nDst=0; nDst<8; nDst++ )
	{
		m_pHalMixer->GetControl( LINE_RECORD_0+nDst, LINE_NO_SOURCE, CONTROL_PEAKMETER, LEFT, &ulValue );
		VUSetDlgLevel( m_hWnd, IDC_RECORD1L_VUMETER + (nCtlCount * nDst), ulValue );

		m_pHalMixer->GetControl( LINE_RECORD_0+nDst, LINE_NO_SOURCE, CONTROL_PEAKMETER, RIGHT, &ulValue );
		VUSetDlgLevel( m_hWnd, IDC_RECORD1R_VUMETER + (nCtlCount * nDst), ulValue );
	}
}
コード例 #2
0
ファイル: TestPage.cpp プロジェクト: jerlich/rt-fsm
void CTestPage::UpdateMeters( void )
/////////////////////////////////////////////////////////////////////////////
{
	ULONG	ulValue;

	int nRecordDevice	= m_RecordDevice.GetCurSel();
	int nPlayDevice		= m_PlayDevice.GetCurSel();

	// go get the VU meters information
	m_pHalMixer->GetControl( LINE_RECORD_0+nRecordDevice, LINE_NO_SOURCE, CONTROL_PEAKMETER, LEFT, &ulValue );
	VUSetDlgLevel( m_hWnd, IDC_RECORD1L_VUMETER, ulValue );
	m_pHalMixer->GetControl( LINE_RECORD_0+nRecordDevice, LINE_NO_SOURCE, CONTROL_PEAKMETER, RIGHT, &ulValue );
	VUSetDlgLevel( m_hWnd, IDC_RECORD1R_VUMETER, ulValue );

	m_pHalMixer->GetControl( LINE_OUT_1+nPlayDevice, LINE_NO_SOURCE, CONTROL_PEAKMETER, 0, &ulValue );
	VUSetDlgLevel( m_hWnd, IDC_OUT1_VUMETER, ulValue );
	m_pHalMixer->GetControl( LINE_OUT_2+nPlayDevice, LINE_NO_SOURCE, CONTROL_PEAKMETER, 0, &ulValue );
	VUSetDlgLevel( m_hWnd, IDC_OUT2_VUMETER, ulValue );
}
コード例 #3
0
ファイル: OutputsPage.cpp プロジェクト: AndrewHires/Solo
void COutputsPage::UpdateMeters( void ) 
/////////////////////////////////////////////////////////////////////////////
{
	ULONG	ulValue;

	// go get the VU meters information
	for( int i=0; i<16; i++ )
	{
		m_pHalMixer->GetControl( LINE_OUT_1+i, LINE_NO_SOURCE, CONTROL_PEAKMETER, 0, &ulValue );
		VUSetDlgLevel( m_hWnd, IDC_OUT1_VUMETER+i, ulValue );
	}
}