]>
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/sndbase.h"
18 #include "wx/mmedia/sndpcm.h"
24 class wxSoundStreamESD
: public wxSoundStream
{
26 wxSoundStreamESD(const wxString
& hostname
= wxT("localhost"));
29 wxSoundStream
& Read(void *buffer
, wxUint32 len
);
30 wxSoundStream
& Write(const void *buffer
, wxUint32 len
);
32 bool SetSoundFormat(const wxSoundFormatBase
& format
);
34 bool StartProduction(int evt
);
35 bool StopProduction();
37 // You should not call this.
38 void WakeUpEvt(int evt
);
40 bool QueueFilled() const { return m_q_filled
; }
42 int m_fd_input
, m_fd_output
; // ESD fds
43 int m_tag_input
, m_tag_output
; // GLIB tags
44 bool m_esd_stop
; // Stream started ?
45 bool m_esd_ok
; // ESD detected
46 wxString m_hostname
; // ESD host
47 bool m_q_filled
; // queue filled
50 void DetectBest(wxSoundFormatPcm
*pcm
);