Beispiel #1
0
static javacall_result audio_resume(javacall_handle handle){

    audio_handle* pHandle = (audio_handle*)handle;
    audio_prepare_MCIWnd(pHandle);

    if (pHandle->hWnd) {
        pHandle->timerId = (UINT)timeSetEvent(500, 100, 
            audio_timer_callback,(DWORD)pHandle, TIME_PERIODIC);
        MCIWndResume(pHandle->hWnd);
    }

    return JAVACALL_FAIL;
}
Beispiel #2
0
BOOL MP3::Pause()
{
	if(m_bPause)
	{
		MCIWndResume(m_hVideo);
		m_bPause = FALSE;
	}
	else
	{
		MCIWndPause(m_hVideo);
		m_bPause = TRUE;
	}

	return m_bPause;
}