1999-08-14 12:06:35 +00:00
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// Name: sndesd.h
|
|
|
|
// Purpose:
|
|
|
|
// Date: 08/11/1999
|
|
|
|
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
|
|
|
|
// CVSID: $Id$
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
#ifndef _WX_SNDESD_H
|
|
|
|
#define _WX_SNDESD_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "sndesd.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <wx/string.h>
|
|
|
|
#include "sndbase.h"
|
|
|
|
#include "sndpcm.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// ESD output class
|
|
|
|
//
|
|
|
|
|
|
|
|
class wxSoundStreamESD : public wxSoundStream {
|
|
|
|
public:
|
|
|
|
wxSoundStreamESD(const wxString& hostname = _T("localhost"));
|
|
|
|
~wxSoundStreamESD();
|
|
|
|
|
1999-08-27 17:40:40 +00:00
|
|
|
wxSoundStream& Read(void *buffer, wxUint32 len);
|
|
|
|
wxSoundStream& Write(const void *buffer, wxUint32 len);
|
1999-08-14 12:06:35 +00:00
|
|
|
|
|
|
|
bool SetSoundFormat(const wxSoundFormatBase& format);
|
|
|
|
|
|
|
|
bool StartProduction(int evt);
|
|
|
|
bool StopProduction();
|
|
|
|
|
|
|
|
void SetDuplexMode(bool duplex) {}
|
|
|
|
|
|
|
|
// You should not call this.
|
|
|
|
void WakeUpEvt(int evt);
|
1999-11-06 17:44:03 +00:00
|
|
|
|
|
|
|
bool QueueFilled() const { return m_q_filled; }
|
1999-08-14 12:06:35 +00:00
|
|
|
protected:
|
|
|
|
int m_fd;
|
|
|
|
int m_tag;
|
|
|
|
bool m_esd_stop;
|
|
|
|
wxString m_hostname;
|
1999-11-06 17:44:03 +00:00
|
|
|
bool m_q_filled;
|
1999-08-14 12:06:35 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void DetectBest(wxSoundFormatPcm *pcm);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|