// Copyright (c) 2012- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include "Core/HLE/sceAudiocodec.h"20#include "Core/Util/AtracTrack.h"21#include "Core/HLE/AtracCtx.h"2223class PointerWrap;2425void Register_sceAtrac3plus();26void __AtracInit();27void __AtracDoState(PointerWrap &p);28void __AtracShutdown();29int __AtracMaxContexts();3031void __AtracNotifyLoadModule(int version, u32 crc, u32 bssAddr, int bssSize);32void __AtracNotifyUnloadModule();3334constexpr int PSP_MAX_ATRAC_IDS = 6;3536class AtracBase;3738// For debugger use ONLY.39const AtracBase *__AtracGetCtx(int i, u32 *type);4041// External interface used by sceSas, see ATRAC_STATUS_FOR_SCESAS.42u32 AtracSasAddStreamData(int atracID, u32 bufPtr, u32 bytesToAdd);43void AtracSasDecodeData(int atracID, u8* outbuf, int *SamplesNum, int *finish);44int AtracSasBindContextAndGetID(u32 contextAddr);4546// To provide checkboxes in the debugger UI.47// This setting is not saved.48bool *__AtracMuteFlag(int atracID);495051