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/defs.h"
18 #include "wx/mmedia/sndbase.h"
19 #include "wx/mmedia/sndpcm.h"
25 class WXDLLIMPEXP_MMEDIA wxSoundStreamOSS
: public wxSoundStream
{
27 wxSoundStreamOSS(const wxString
& dev_name
= wxT("/dev/dsp"));
30 wxSoundStream
& Read(void *buffer
, wxUint32 len
);
31 wxSoundStream
& Write(const void *buffer
, wxUint32 len
);
32 wxUint32
GetBestSize() const;
34 bool SetSoundFormat(const wxSoundFormatBase
& format
);
36 bool StartProduction(int evt
);
37 bool StopProduction();
39 bool QueueFilled() const;
41 // You should not call this.
42 void WakeUpEvt(int evt
);
48 bool m_oss_stop
, m_oss_ok
, m_q_filled
;
52 bool SetupFormat(wxSoundFormatPcm
*pcm
);
53 void DetectBest(wxSoundFormatPcm
*pcm
);