mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
49 lines
1.7 KiB
C
49 lines
1.7 KiB
C
![]() |
///////////////////////////////////////////////////////////////////////////////
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
#include "gvPS3Audio.h"
|
||
|
#include "gvPS3Headset.h"
|
||
|
|
||
|
#if !defined(_PS3)
|
||
|
#error This file should only be used with the PlayStation3
|
||
|
#endif
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
// starts up the devices
|
||
|
GVBool gviHardwareStartup(void)
|
||
|
{
|
||
|
return gviPS3HeadsetStartup();
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
// cleans up the devices
|
||
|
void gviHardwareCleanup(void)
|
||
|
{
|
||
|
gviPS3HeadsetCleanup();
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
// should be called every once in a while
|
||
|
void gviHardwareThink(void)
|
||
|
{
|
||
|
gviPS3HeadsetThink();
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
// lists the connected devices
|
||
|
int gviHardwareListDevices(GVDeviceInfo devices[], int maxDevices, GVDeviceType types)
|
||
|
{
|
||
|
return gviPS3HeadsetListDevices(devices, maxDevices, types);
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
// initializes a new device
|
||
|
GVDevice gviHardwareNewDevice(GVDeviceID deviceID, GVDeviceType type)
|
||
|
{
|
||
|
return gviPS3HeadsetNewDevice(deviceID, type);
|
||
|
}
|