]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/sndesd.h
Moved wxMMedia to contrib/src/mmedia
[wxWidgets.git] / utils / wxMMedia2 / lib / sndesd.h
1 // --------------------------------------------------------------------------
2 // Name: sndesd.h
3 // Purpose:
4 // Date: 08/11/1999
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
6 // CVSID: $Id$
7 // --------------------------------------------------------------------------
8 #ifndef _WX_SNDESD_H
9 #define _WX_SNDESD_H
10
11 #ifdef __GNUG__
12 #pragma interface "sndesd.h"
13 #endif
14
15 #include <wx/string.h>
16 #include "sndbase.h"
17 #include "sndpcm.h"
18
19 //
20 // ESD output class
21 //
22
23 class wxSoundStreamESD : public wxSoundStream {
24 public:
25 wxSoundStreamESD(const wxString& hostname = _T("localhost"));
26 ~wxSoundStreamESD();
27
28 wxSoundStream& Read(void *buffer, wxUint32 len);
29 wxSoundStream& Write(const void *buffer, wxUint32 len);
30
31 bool SetSoundFormat(const wxSoundFormatBase& format);
32
33 bool StartProduction(int evt);
34 bool StopProduction();
35
36 // You should not call this.
37 void WakeUpEvt(int evt);
38
39 bool QueueFilled() const { return m_q_filled; }
40 protected:
41 int m_fd_input, m_fd_output;
42 int m_tag_input, m_tag_output;
43 bool m_esd_stop;
44 wxString m_hostname;
45 bool m_q_filled;
46
47 private:
48 void DetectBest(wxSoundFormatPcm *pcm);
49 };
50
51 #endif