mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-04-23 15:33:58 +00:00
25 lines
527 B
C++
25 lines
527 B
C++
#pragma once
|
|
|
|
#ifdef _WINDOWS64
|
|
|
|
class VoiceChat
|
|
{
|
|
public:
|
|
static bool init();
|
|
static void shutdown();
|
|
static void tick();
|
|
static void onVoiceReceived(unsigned char senderSmallId, const char *data, int dataSize);
|
|
static bool isTalking(unsigned char smallId);
|
|
static bool hasVoice();
|
|
static void setEnabled(bool enabled);
|
|
static bool isEnabled();
|
|
|
|
private:
|
|
static bool openMicrophone();
|
|
static void closeMicrophone();
|
|
static bool openPlayback(int playerIndex);
|
|
static void closePlayback(int playerIndex);
|
|
};
|
|
|
|
#endif
|