Example #1
0
void QTapeView::closeTape()
{
    // Stop tape playback
    this->stopTape();

    WavPcmFile_Close((HWAVPCMFILE)m_hTapeWavPcmFile);
    m_hTapeWavPcmFile = INVALID_HANDLE_VALUE;

    m_okTapeInserted = false;

    m_buttonPlay->setEnabled(FALSE);
    m_buttonRewind->setEnabled(FALSE);
    m_buttonOpen->setEnabled(TRUE);
    m_buttonSave->setEnabled(TRUE);
    m_labelFile->setText(NULL);
    m_labelTotal->setText(NULL);
    m_labelCurrent->setText(NULL);
    m_buttonOpen->setText(_T("Open WAV"));
    m_buttonSave->setText(_T("Save WAV"));
}
Example #2
0
void TapeView_CloseTape()
{
    // Stop tape playback
    TapeView_StopTape();

    WavPcmFile_Close(m_hTapeWavPcmFile);
    m_hTapeWavPcmFile = (HWAVPCMFILE) INVALID_HANDLE_VALUE;

    m_okTapeInserted = FALSE;

    EnableWindow(m_hwndTapePlay, FALSE);
    EnableWindow(m_hwndTapeRewind, FALSE);
    EnableWindow(m_hwndTapeOpen, TRUE);
    EnableWindow(m_hwndTapeSave, TRUE);
    SetWindowText(m_hwndTapeFile, NULL);
    SetWindowText(m_hwndTapeTotal, NULL);
    SetWindowText(m_hwndTapeCurrent, NULL);
    SetWindowText(m_hwndTapeOpen, _T("Open WAV"));
    SetWindowText(m_hwndTapeSave, _T("Save WAV"));

    TapeView_ClearGraph();
}