1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndoss.h"
16 #include "wx/string.h"
17 #include "wx/mmedia/sndbase.h"
18 #include "wx/mmedia/sndpcm.h"
24 class WXDLLEXPORT wxSoundStreamOSS
: public wxSoundStream
{
26 wxSoundStreamOSS(const wxString
& dev_name
= wxT("/dev/dsp"));
29 wxSoundStream
& Read(void *buffer
, wxUint32 len
);
30 wxSoundStream
& Write(const void *buffer
, wxUint32 len
);
31 wxUint32
GetBestSize() const;
33 bool SetSoundFormat(const wxSoundFormatBase
& format
);
35 bool StartProduction(int evt
);
36 bool StopProduction();
38 bool QueueFilled() const;
40 // You should not call this.
41 void WakeUpEvt(int evt
);
47 bool m_oss_stop
, m_oss_ok
, m_q_filled
;
51 bool SetupFormat(wxSoundFormatPcm
*pcm
);
52 void DetectBest(wxSoundFormatPcm
*pcm
);