mirror of
https://github.com/Vita3K/Vita3K.git
synced 2025-04-02 11:02:10 -04:00
67 lines
2.7 KiB
C++
67 lines
2.7 KiB
C++
// Vita3K emulator project
|
|
// Copyright (C) 2022 Vita3K team
|
|
//
|
|
// 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.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License along
|
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
/**
|
|
* @file SceAudio_tracy.h
|
|
* @brief Tracy argument serializing functions for SceAudio
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef TRACY_ENABLE
|
|
|
|
#include "SceAudio.h"
|
|
#include "Tracy.hpp"
|
|
#include "client/TracyScoped.hpp"
|
|
|
|
/**
|
|
* @brief Module name used for retrieving Tracy activation state for logging using Tracy profiler
|
|
*
|
|
* This constant is used by functions in module to know which module name they have
|
|
* to use as a key to retrieve the activation state for logging of the module towards the Tracy profiler.
|
|
*/
|
|
const std::string tracy_module_name = "SceAudio";
|
|
|
|
void tracy_sceAudioOutGetAdopt(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, SceAudioOutPortType type);
|
|
|
|
void tracy_sceAudioOutGetConfig(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, int port, SceAudioOutConfigType type);
|
|
|
|
// void tracy_sceAudioOutGetPortVolume_forUser();
|
|
|
|
void tracy_sceAudioOutOpenPort(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, SceAudioOutPortType type, int len, int freq, SceAudioOutMode mode);
|
|
|
|
void tracy_sceAudioOutOutput(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, int port);
|
|
|
|
void tracy_sceAudioOutGetRestSample(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, int port);
|
|
|
|
// void tracy_sceAudioOutOpenExtPort();
|
|
|
|
void tracy_sceAudioOutReleasePort(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, int port);
|
|
|
|
// void tracy_sceAudioOutSetAdoptMode();
|
|
|
|
// void tracy_sceAudioOutSetAdopt_forUser();
|
|
|
|
void tracy_sceAudioOutSetAlcMode(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, SceAudioOutAlcMode mode);
|
|
|
|
void tracy_sceAudioOutSetConfig(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, int port, SceSize len, int freq, SceAudioOutMode mode);
|
|
|
|
// void tracy_sceAudioOutSetEffectType();
|
|
|
|
void tracy_sceAudioOutSetVolume(tracy::ScopedZone *___tracy_scoped_zone, bool module_activation, int port, SceAudioOutChannelFlag ch, int *vol);
|
|
|
|
#endif // TRACY_ENABLE
|