Files correlati : Commento : Spostamento in libraries delle librerie esterne di Campo per una maggiore pulizia e organizzazione git-svn-id: svn://10.65.10.50/branches/R_10_00@24150 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// --------------------------------------------------------------------------
 | 
						|
// Name: sndoss.h
 | 
						|
// Purpose:
 | 
						|
// Date: 08/11/1999
 | 
						|
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
 | 
						|
// CVSID: $Id: sndoss.h 35650 2005-09-23 12:56:45Z MR $
 | 
						|
// License:    wxWindows license
 | 
						|
// --------------------------------------------------------------------------
 | 
						|
#ifndef _WX_SNDOSS_H
 | 
						|
#define _WX_SNDOSS_H
 | 
						|
 | 
						|
#include "wx/defs.h"
 | 
						|
#include "wx/string.h"
 | 
						|
#include "wx/mmedia/defs.h"
 | 
						|
#include "wx/mmedia/sndbase.h"
 | 
						|
#include "wx/mmedia/sndpcm.h"
 | 
						|
 | 
						|
//
 | 
						|
// OSS output class
 | 
						|
//
 | 
						|
 | 
						|
class WXDLLIMPEXP_MMEDIA wxSoundStreamOSS : public wxSoundStream {
 | 
						|
 public:
 | 
						|
  wxSoundStreamOSS(const wxString& dev_name = wxT("/dev/dsp"));
 | 
						|
  ~wxSoundStreamOSS();
 | 
						|
 | 
						|
  wxSoundStream& Read(void *buffer, wxUint32 len);
 | 
						|
  wxSoundStream& Write(const void *buffer, wxUint32 len);
 | 
						|
  wxUint32 GetBestSize() const;
 | 
						|
 | 
						|
  bool SetSoundFormat(const wxSoundFormatBase& format);
 | 
						|
 | 
						|
  bool StartProduction(int evt);
 | 
						|
  bool StopProduction();
 | 
						|
 | 
						|
  bool QueueFilled() const;
 | 
						|
 | 
						|
  // You should not call this.
 | 
						|
  void WakeUpEvt(int evt);
 | 
						|
 protected:
 | 
						|
  // OSS device
 | 
						|
  int m_fd;
 | 
						|
  wxUint32 m_bufsize;
 | 
						|
  int m_tag;
 | 
						|
  bool m_oss_stop, m_oss_ok, m_q_filled;
 | 
						|
  wxString m_devname;
 | 
						|
 | 
						|
 private:
 | 
						|
  bool SetupFormat(wxSoundFormatPcm *pcm);
 | 
						|
  void DetectBest(wxSoundFormatPcm *pcm);
 | 
						|
};
 | 
						|
 | 
						|
#endif
 |