/
OAL_CustomStream.h
47 lines (37 loc) · 1.12 KB
/
OAL_CustomStream.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright 2007-2010 (C) - Frictional Games
*
* This file is part of OALWrapper
*
* For conditions of distribution and use, see copyright notice in LICENSE
*/
/**
@file OAL_CustomStream.h
@author Edward Rudd
@date 2013-04-16
@version 0.1
Declaration of class for containing Custom streams
*/
#ifndef _OAL_CUSTOMSTREAM_H
#define _OAL_CUSTOMSTREAM_H
#include "OAL_Stream.h"
#include "OAL_Helper.h"
//------------------------------------------------------------------------
class cOAL_CustomStream : public cOAL_Stream
{
public:
cOAL_CustomStream(const tStreamCallbacks& aCallbacks, const tStreamInfo& aInfo, void *apData);
~cOAL_CustomStream();
void Seek(float afWhere, bool abForceRebuffer);
protected:
bool CreateFromFile(const std::wstring &asFileName) { return false; };
bool CreateFromBuffer(const void *apBuffer, size_t aSize) { return false; };
void Destroy();
bool Stream(cOAL_Buffer* apDestBuffer);
double GetTime();
const tStreamCallbacks mCallbacks;
const tStreamInfo mInfo;
void* mpData;
};
//------------------------------------------------------------------------
#endif // _OAL_CUSTOMSTREAM_H