feat: Orbis & PSVita builds, Durango postbuild & More (#10)
This fixes Orbis & PSVita builds along with adds a Durango postbuild and moves PS3 to the new SonyLeaderboardManager introduced in TU19 This also fixes the Orbis strings and gets some of the other Windows64 build configurations mostly building. --------- Co-authored-by: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Co-authored-by: str1k3r <1+str1k3r@noreply.localhost> Co-authored-by: 552eden <552eden@gmail.com> Co-authored-by: ubergamer-pie <16+ubergamer-pie@noreply.localhost> Co-authored-by: str1k3r <15+str1k3r@noreply.neolegacy.dev> Co-authored-by: pieeebot <10+pieeebot@noreply.neolegacy.dev> Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
@@ -35,14 +35,23 @@ int g_loadedPCMVoiceDataSizes[4];
|
||||
int g_loadedPCMVoiceDataPos[4];
|
||||
char* g_loadedPCMVoiceData[4];
|
||||
|
||||
static void CreatePort(uint32_t *portId, const SceVoicePortParam *pArg)
|
||||
{
|
||||
C4JThread::PushAffinityAllCores(); // PS4 only
|
||||
|
||||
int err = sceVoiceCreatePort( portId, pArg );
|
||||
assert(err == SCE_OK);
|
||||
assert(*portId != SCE_VOICE_INVALID_PORT_ID);
|
||||
C4JThread::PopAffinity(); // PS4 only
|
||||
static bool CreatePort(uint32_t *portId, const SceVoicePortParam *pArg)
|
||||
{
|
||||
C4JThread::PushAffinityAllCores();
|
||||
|
||||
*portId = SCE_VOICE_INVALID_PORT_ID;
|
||||
|
||||
int err = sceVoiceCreatePort(portId, pArg);
|
||||
//assert(err == SCE_OK);
|
||||
//assert(*portId != VOICE_INVALID_PORT_ID);
|
||||
C4JThread::PopAffinity();
|
||||
|
||||
if (err != SCE_OK || *portId == SCE_VOICE_INVALID_PORT_ID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void DeletePort(uint32_t& port)
|
||||
@@ -122,7 +131,12 @@ void SonyVoiceChat_Orbis::init()
|
||||
portArgs.volume = 1.0f;
|
||||
portArgs.voice.bitrate = VOICE_ENCODED_FORMAT;
|
||||
#endif
|
||||
CreatePort( &m_voiceOutPort, &portArgs );
|
||||
//CreatePort( &m_voiceOutPort, &portArgs );
|
||||
|
||||
if (!CreatePort(&m_voiceOutPort, &portArgs))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
start();
|
||||
m_bInitialised = true;
|
||||
|
||||
Reference in New Issue
Block a user