1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // License: wxWindows license
8 // --------------------------------------------------------------------------
13 #include "wx/string.h"
14 #include "wx/mmedia/defs.h"
15 #include "wx/mmedia/sndbase.h"
16 #include "wx/mmedia/sndpcm.h"
22 class WXDLLIMPEXP_MMEDIA wxSoundStreamOSS
: public wxSoundStream
{
24 wxSoundStreamOSS(const wxString
& dev_name
= wxT("/dev/dsp"));
27 wxSoundStream
& Read(void *buffer
, wxUint32 len
);
28 wxSoundStream
& Write(const void *buffer
, wxUint32 len
);
29 wxUint32
GetBestSize() const;
31 bool SetSoundFormat(const wxSoundFormatBase
& format
);
33 bool StartProduction(int evt
);
34 bool StopProduction();
36 bool QueueFilled() const;
38 // You should not call this.
39 void WakeUpEvt(int evt
);
45 bool m_oss_stop
, m_oss_ok
, m_q_filled
;
49 bool SetupFormat(wxSoundFormatPcm
*pcm
);
50 void DetectBest(wxSoundFormatPcm
*pcm
);