all:
cd lib; make
cd sample; make
+ cd board; make
MMBoardTime GetLength();
bool IsStopped();
+ bool IsPaused();
wxString GetStringType();
wxString GetStringInformation();
return m_file_stream->IsStopped();
}
+bool MMBoardSoundFile::IsPaused()
+{
+ return m_file_stream->IsPaused();
+}
+
MMBoardTime MMBoardSoundFile::GetPosition()
{
wxUint32 length, seconds;
virtual MMBoardTime GetLength() = 0;
virtual bool IsStopped() = 0;
+ virtual bool IsPaused() = 0;
virtual wxString GetStringType() = 0;
virtual wxString GetStringInformation() = 0;
void MMBoardFrame::OnPlay(wxCommandEvent& WXUNUSED(event))
{
+ m_stopButton->Enable(TRUE);
+ m_pauseButton->Enable(TRUE);
+ m_playButton->Enable(FALSE);
+
+ if (m_opened_file->IsPaused()) {
+ m_opened_file->Resume();
+ return;
+ }
+
m_refreshTimer->Start(1000, FALSE);
m_opened_file->Play();
len2 = (m_16_to_8) ? len / 2 : len;
tmp_buf = new char[len2];
- m_function_out((const char *)buffer, tmp_buf, len);
+ m_function_out((const char *)buffer, tmp_buf, len2);
m_sndio->Write(tmp_buf, len);
delete[] tmp_buf;
bool Resume();
bool IsStopped() const { return m_state == wxSOUND_FILE_STOPPED; }
+ bool IsPaused() const { return m_state == wxSOUND_FILE_PAUSED; }
bool StartProduction(int evt);
bool StopProduction();