// // sub_C0E40 from 0xc0e40 to 0xc0ec4 (132 bytes) // // 2 xrefs: // > sub_C0EE8 @ 0xc0f64 // > sub_C15BC @ 0xc1642 // // 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_C0E40(int a1, int a2, _DWORD *a3, _DWORD *a4) { int v7; // r4 int v9; // [sp+0h] [bp-20h] BYREF int v10; // [sp+4h] [bp-1Ch] int v11; // [sp+8h] [bp-18h] BYREF int v12; // [sp+Ch] [bp-14h] BYREF v7 = sub_C0894(a1); if ( !v7 ) { if ( so_AAudio_createStreamBuilder(&v11) ) { return 51; } else { v10 = 0; v9 = v11; so_AAudioStreamBuilder_setPerformanceMode(v11, 12); if ( so_AAudioStreamBuilder_setUsage ) ((void (__fastcall *)(int, int))so_AAudioStreamBuilder_setUsage)(v11, 14); so_AAudioStreamBuilder_setDirection(v11, a2); if ( so_AAudioStreamBuilder_openStream(v11, &v12) ) { v7 = 51; } else { v10 = v12; if ( a3 ) *a3 = so_AAudioStream_getSampleRate(v12); if ( a4 ) *a4 = so_AAudioStream_getChannelCount(v12); v7 = 0; } sub_C0EC8(&v9); } } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source