]>
git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/sndesd.h
1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
12 #pragma interface "sndesd.h"
16 #include "wx/string.h"
17 #include "wx/mmedia/defs.h"
18 #include "wx/mmedia/sndbase.h"
19 #include "wx/mmedia/sndpcm.h"
25 class wxSoundStreamESD
: public wxSoundStream
{
27 wxSoundStreamESD(const wxString
& hostname
= wxT("localhost"));
30 wxSoundStream
& Read(void *buffer
, wxUint32 len
);
31 wxSoundStream
& Write(const void *buffer
, wxUint32 len
);
33 bool SetSoundFormat(const wxSoundFormatBase
& format
);
35 bool StartProduction(int evt
);
36 bool StopProduction();
38 // You should not call this.
39 void WakeUpEvt(int evt
);
41 bool QueueFilled() const { return m_q_filled
; }
43 int m_fd_input
, m_fd_output
; // ESD fds
44 int m_tag_input
, m_tag_output
; // GLIB tags
45 bool m_esd_stop
; // Stream started ?
46 bool m_esd_ok
; // ESD detected
47 wxString m_hostname
; // ESD host
48 bool m_q_filled
; // queue filled
51 void DetectBest(wxSoundFormatPcm
*pcm
);