forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenginebufferscaledummy.h
42 lines (33 loc) · 1.58 KB
/
enginebufferscaledummy.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
/***************************************************************************
enginebufferscale.h - description
-------------------
begin : Sun Apr 13 2003
copyright : (C) 2003 by Tue & Ken Haste Andersen
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef ENGINEBUFFERSCALEDUMMY_H
#define ENGINEBUFFERSCALEDUMMY_H
#include <QObject>
#include "util/types.h"
#include "engine/enginebufferscale.h"
class ReadAheadManager;
class EngineBufferScaleDummy : public EngineBufferScale {
public:
EngineBufferScaleDummy(ReadAheadManager* pReadAheadManager);
virtual ~EngineBufferScaleDummy();
/** Called from EngineBuffer when seeking, to ensure the buffers are flushed */
void clear();
/** Scale buffer */
CSAMPLE* getScaled(unsigned long buf_size);
private:
ReadAheadManager* m_pReadAheadManager;
};
#endif