Show stream.h syntax highlighted
/***************************************************************************
stream.h - WAV stream
-------------------
begin : Wed Mar 17 2004
copyright : (C) 2004 by Reality Rift Studios
email : mattias@realityrift.com
***************************************************************************
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is the NeoEngine, NeoACWAV, stream.h
The Initial Developer of the Original Code is Mattias Jansson.
Portions created by Mattias Jansson are Copyright (C) 2004
Reality Rift Studios. All Rights Reserved.
***************************************************************************/
#ifndef __NEOACWAV_STREAM_H
#define __NEOACWAV_STREAM_H
#include "codec.h"
#include <neoengine/sound.h>
#include <neoengine/file.h>
namespace NeoACWAV
{
/**
* \brief WAV sound stream
* \author Mattias Jansson (mattias@realityrift.com)
*/
class Stream : public NeoEngine::SoundStream
{
protected:
RiffChunk m_RiffChunk;
FormatChunk m_FormatChunk;
DataChunk m_DataChunk;
public:
/**
* \param pkFile Sound file
* \param pkCodec Sound codec
*/
Stream( NeoEngine::File *pkFile );
/**
*/
virtual ~Stream();
/**
* Reset the stream to start
*/
virtual void Reset();
/**
* Decode a chunk of data
* \param pucBuffer Target buffer
* \param uiBytes Maximum number of bytes to decode (maximum size of buffer)
* \return Number of bytes decoded
*/
virtual unsigned int Decode( unsigned char *pucBuffer, unsigned int uiBytes );
};
};
#endif
See more files for this project here
NeoenEngine NG (Next Generation) is the evolution of neoengine one,it\'s a different development from NeoEngine2, it\'s a direct inherits from NeoEngine one.\n
Project homepage:
http://sourceforge.net/projects/neoengineng
Programming language(s): C,C++
License: other
Makefile.am
SConscript
codec.cpp
codec.h
link.h
neoacwav-static.dev
neoacwav.cbp
neoacwav.dev
neoacwav.dsp
neoacwav.layout
neoacwav.vcproj
stream.cpp
stream.h