blob: ea1358b8e9e1543799b1e9e32addb92487adf135 (
plain)
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
|
/**
* @file llaudiodecodemgr.h
*
* Copyright (c) 2003-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LL_LLAUDIODECODEMGR_H
#define LL_LLAUDIODECODEMG_H
#include "stdtypes.h"
#include "lllinkedqueue.h"
#include "lluuid.h"
#include "llassettype.h"
#include "llframetimer.h"
class LLVFS;
class LLVorbisDecodeState;
class LLAudioDecodeMgr
{
public:
LLAudioDecodeMgr();
~LLAudioDecodeMgr();
void processQueue(const F32 num_secs = 0.005);
LLLinkedQueue<LLUUID> mDecodeQueue;
LLVorbisDecodeState *mCurrentDecodep;
BOOL addDecodeRequest(const LLUUID &uuid);
void addAudioRequest(const LLUUID &uuid);
S32 getRequestCount();
protected:
LLLinkedQueue<LLUUID> mDownloadQueue;
LLFrameTimer mCurrentTransferAge;
};
extern LLAudioDecodeMgr *gAudioDecodeMgrp;
#endif
|