4d6306eb4d
* WARNING! It is quite unstable on Windows and it doesn't work on Linux for the moment because I didn't finish fixing the CODEC stream. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
44 lines
996 B
C++
44 lines
996 B
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wave.h
|
|
// Purpose: wxWave class
|
|
// Author: Julian Smart
|
|
// Modified by: Guilhem Lavaux for wxMMedia (02/05/1998)
|
|
// Created: 01/02/97
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) Julian Smart and Markus Holzem
|
|
// Licence: wxWindows license
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __WAVEH__
|
|
#define __WAVEH__
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include <wx/object.h>
|
|
#include <wx/string.h>
|
|
#include "sndwav.h"
|
|
|
|
class wxWave : public wxObject
|
|
{
|
|
public:
|
|
wxWave();
|
|
wxWave(const wxString& fileName, bool isResource = FALSE);
|
|
~wxWave();
|
|
|
|
public:
|
|
bool Create(const wxString& sFileName, bool isResource = FALSE);
|
|
bool IsOk() const { return (m_wave ? TRUE : FALSE); };
|
|
bool Play(bool async = TRUE, bool looped = FALSE) const;
|
|
|
|
protected:
|
|
bool Free();
|
|
|
|
protected:
|
|
wxInputStream *m_iowave;
|
|
wxSndWavCodec *m_wave;
|
|
};
|
|
|
|
#endif
|