]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/sndoss.h
1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndoss.h"
15 #include <wx/string.h>
23 class wxSoundStreamOSS
: public wxSoundStream
{
25 wxSoundStreamOSS(const wxString
& dev_name
= _T("/dev/dsp"));
28 wxSoundStream
& Read(void *buffer
, wxUint32 len
);
29 wxSoundStream
& Write(const void *buffer
, wxUint32 len
);
30 wxUint32
GetBestSize() const;
32 bool SetSoundFormat(const wxSoundFormatBase
& format
);
34 bool StartProduction(int evt
);
35 bool StopProduction();
37 void SetDuplexMode(bool duplex
) {}
38 bool QueueFilled() const;
40 // You should not call this.
41 void WakeUpEvt(int evt
);
46 bool m_oss_stop
, m_q_filled
;
50 bool SetupFormat(wxSoundFormatPcm
*pcm
);
51 void DetectBest(wxSoundFormatPcm
*pcm
);