Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Core/HLE/sceAtrac.h
3186 views
1
// Copyright (c) 2012- PPSSPP Project.
2
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, version 2.0 or later versions.
6
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License 2.0 for more details.
11
12
// A copy of the GPL 2.0 should have been included with the program.
13
// If not, see http://www.gnu.org/licenses/
14
15
// Official git repository and contact information can be found at
16
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
17
18
#pragma once
19
20
#include "Core/HLE/sceAudiocodec.h"
21
#include "Core/Util/AtracTrack.h"
22
#include "Core/HLE/AtracCtx.h"
23
24
class PointerWrap;
25
26
void Register_sceAtrac3plus();
27
void __AtracInit();
28
void __AtracDoState(PointerWrap &p);
29
void __AtracShutdown();
30
int __AtracMaxContexts();
31
32
void __AtracNotifyLoadModule(int version, u32 crc, u32 bssAddr, int bssSize);
33
void __AtracNotifyUnloadModule();
34
35
constexpr int PSP_MAX_ATRAC_IDS = 6;
36
37
class AtracBase;
38
39
// For debugger use ONLY.
40
const AtracBase *__AtracGetCtx(int i, u32 *type);
41
42
// External interface used by sceSas, see ATRAC_STATUS_FOR_SCESAS.
43
u32 AtracSasAddStreamData(int atracID, u32 bufPtr, u32 bytesToAdd);
44
void AtracSasDecodeData(int atracID, u8* outbuf, int *SamplesNum, int *finish);
45
int AtracSasBindContextAndGetID(u32 contextAddr);
46
47
// To provide checkboxes in the debugger UI.
48
// This setting is not saved.
49
bool *__AtracMuteFlag(int atracID);
50
51