//
// sub_C2124 from 0xc2124 to 0xc218e (106 bytes)
//
// 1 xrefs:
// > sub_C205A @ 0xc2066
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_C2124(int a1, int a2, _BYTE *a3, int a4, int a5, int *a6, _DWORD *a7)
{
int result; // r0
int v8; // r0
int v9; // r3
int v10; // [sp+4h] [bp-14h] BYREF
if ( a3 && a4 >= 1 )
sub_BE220(a3, "Android audio output", a4);
if ( a7 )
*a7 = 3;
result = 0;
if ( a6 )
{
v10 = 0;
result = sub_BFE7C((int)&v10);
if ( !result )
{
v8 = (*(int (__fastcall **)(int, int, const char *, const char *))(*(_DWORD *)v10 + 452))(
v10,
gFMODClass,
"getOutputSampleRate",
"()I");
if ( v8 )
{
*a6 = sub_BFA88(v10, gFMODClass, v8, v9);
return 0;
}
else
{
return 28;
}
}
}
return result;
}