CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Core/HLE/__sceAudio.h
Views: 1401
// 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 "Common/File/Path.h"2021#include "sceAudio.h"2223struct AudioDebugStats {24int buffered;25int watermark;26int bufsize;27int underrunCount;28int overrunCount;29int instantSampleRate;30int targetSampleRate;31int lastPushSize;32};3334// Easy interface for sceAudio to write to, to keep the complexity in check.3536void __AudioInit();37void __AudioDoState(PointerWrap &p);38void __AudioUpdate(bool resetRecording = false);39void __AudioShutdown();40void __AudioSetOutputFrequency(int freq);41void __AudioSetSRCFrequency(int freq);4243// May return SCE_ERROR_AUDIO_CHANNEL_BUSY if buffer too large44u32 __AudioEnqueue(AudioChannel &chan, int chanNum, bool blocking);45void __AudioWakeThreads(AudioChannel &chan, int result, int step);46void __AudioWakeThreads(AudioChannel &chan, int result);4748// AUDIO Dumping stuff49void __StartLogAudio(const Path &filename);50void __StopLogAudio();5152class WAVDump {53public:54static void Reset();55};565758