mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
bbe3bd0304
* Audio: support 12-channel AudioOut2 output via stereo downmix * Audio: document 7.1.4 downmix matrix and align s16 coefficients * audio: use shared 12-to-8 channel conversion for SDL --------- Co-authored-by: Airsoft Project <airsoft@example.com> Co-authored-by: nmzik <Nmzik@mail.ru>
36 lines
816 B
C++
36 lines
816 B
C++
#ifndef EMULATOR_INCLUDE_EMULATOR_AUDIO_INTERNAL_H_
|
|
#define EMULATOR_INCLUDE_EMULATOR_AUDIO_INTERNAL_H_
|
|
|
|
#include "common/common.h"
|
|
|
|
namespace Libs::Audio::AudioInternal {
|
|
|
|
enum class Format {
|
|
Unknown,
|
|
Signed16bitMono,
|
|
Signed16bitStereo,
|
|
Signed16bit8Ch,
|
|
FloatMono,
|
|
FloatStereo,
|
|
Float8Ch,
|
|
Signed16bit8ChStd,
|
|
Float8ChStd,
|
|
Float12Ch,
|
|
};
|
|
|
|
struct OutputParam {
|
|
int handle = 0;
|
|
const void* data = nullptr;
|
|
};
|
|
|
|
static constexpr int OUT_PORTS_MAX = 32;
|
|
|
|
int AudioOutOpen(int type, uint32_t samples_num, uint32_t freq, Format format);
|
|
void AudioOutClose(int handle);
|
|
bool AudioOutHasDevice(int handle);
|
|
uint32_t AudioOutOutputs(const OutputParam* params, uint32_t num, bool blocking = true);
|
|
|
|
} // namespace Libs::Audio::AudioInternal
|
|
|
|
#endif // EMULATOR_INCLUDE_EMULATOR_AUDIO_INTERNAL_H_
|