]>
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 bool QueueFilled() const;
39 // You should not call this.
40 void WakeUpEvt(int evt
);
45 bool m_oss_stop
, m_q_filled
;
49 bool SetupFormat(wxSoundFormatPcm
*pcm
);
50 void DetectBest(wxSoundFormatPcm
*pcm
);