]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/sndoss.h
Added DoDragOver and DoDropText from Angelo Mandato, and ensured that
[wxWidgets.git] / contrib / include / wx / mmedia / sndoss.h
1 // --------------------------------------------------------------------------
2 // Name: sndoss.h
3 // Purpose:
4 // Date: 08/11/1999
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6 // CVSID: $Id$
7 // --------------------------------------------------------------------------
8 #ifndef _WX_SNDOSS_H
9 #define _WX_SNDOSS_H
10
11 #ifdef __GNUG__
12 #pragma interface "sndoss.h"
13 #endif
14
15 #include "wx/defs.h"
16 #include "wx/string.h"
17 #include "wx/mmedia/defs.h"
18 #include "wx/mmedia/sndbase.h"
19 #include "wx/mmedia/sndpcm.h"
20
21 //
22 // OSS output class
23 //
24
25 class WXDLLIMPEXP_MMEDIA wxSoundStreamOSS : public wxSoundStream {
26 public:
27 wxSoundStreamOSS(const wxString& dev_name = wxT("/dev/dsp"));
28 ~wxSoundStreamOSS();
29
30 wxSoundStream& Read(void *buffer, wxUint32 len);
31 wxSoundStream& Write(const void *buffer, wxUint32 len);
32 wxUint32 GetBestSize() const;
33
34 bool SetSoundFormat(const wxSoundFormatBase& format);
35
36 bool StartProduction(int evt);
37 bool StopProduction();
38
39 bool QueueFilled() const;
40
41 // You should not call this.
42 void WakeUpEvt(int evt);
43 protected:
44 // OSS device
45 int m_fd;
46 wxUint32 m_bufsize;
47 int m_tag;
48 bool m_oss_stop, m_oss_ok, m_q_filled;
49 wxString m_devname;
50
51 private:
52 bool SetupFormat(wxSoundFormatPcm *pcm);
53 void DetectBest(wxSoundFormatPcm *pcm);
54 };
55
56 #endif