AnyPS5/core/libs/tests/GuestTextToSpeech2.cpp

35 lines
1.3 KiB
C++

#include "prx/libc/include/general/VabiMacros.hpp"
#include <cstdint>
#include <cstdio>
#include <cstdlib>
extern "C" {
std::int32_t APS5_VABI sceTextToSpeech2Initialize(const void* param);
int APS5_VABI sceTextToSpeech2Open();
int APS5_VABI sceTextToSpeech2Cancel();
int APS5_VABI sceTextToSpeech2Close();
int APS5_VABI sceTextToSpeech2GetSpeechStatus();
int APS5_VABI sceTextToSpeech2Speak();
int APS5_VABI sceTextToSpeech2Terminate();
int APS5_VABI sceTextToSpeech2GetSystemStatus();
}
int main() {
constexpr std::int32_t unsupported = static_cast<std::int32_t>(0x8002002D);
const std::uint32_t param[12]{0x2000000, 0x26c};
if (sceTextToSpeech2Initialize(param) != unsupported) {
std::puts("TextToSpeech2: initialization did not report the unsupported operation");
std::abort();
}
if (sceTextToSpeech2Open() != unsupported || sceTextToSpeech2Cancel() != unsupported ||
sceTextToSpeech2Close() != unsupported || sceTextToSpeech2GetSpeechStatus() != unsupported ||
sceTextToSpeech2Speak() != unsupported || sceTextToSpeech2Terminate() != unsupported ||
sceTextToSpeech2GetSystemStatus() != unsupported) {
std::puts("TextToSpeech2: later calls did not report the unsupported operation");
std::abort();
}
std::puts("TextToSpeech2 tests passed");
return 0;
}