]>
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
, size_t len
);
29 wxSoundStream
& Write(const void *buffer
, size_t len
);
30 wxUint32
GetBestSize() const;
32 bool SetSoundFormat(const wxSoundFormatBase
& format
);
34 bool StartProduction(int evt
);
35 bool StopProduction();
37 void SetDuplexMode(bool duplex
) {}
39 // You should not call this.
40 void WakeUpEvt(int evt
);
49 bool SetupFormat(wxSoundFormatPcm
*pcm
);
50 void DetectBest(wxSoundFormatPcm
*pcm
);