From d6751a0f4b65331d48030ec0a3c156fce66967f9 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 15 Sep 2019 22:13:14 -0400 Subject: [PATCH] Update Plasma.py stubs for ASYS --- Python/plasma/Plasma.py | 72 +++++++---------------------------------- 1 file changed, 12 insertions(+), 60 deletions(-) diff --git a/Python/plasma/Plasma.py b/Python/plasma/Plasma.py index f37a3f30..547df56e 100644 --- a/Python/plasma/Plasma.py +++ b/Python/plasma/Plasma.py @@ -1281,46 +1281,22 @@ def enableVoiceChat(self,state): """Enables or disables voice chat.""" pass - def enableVoiceCompression(self,state): - """Enables or disables voice compression.""" - pass - - def enableVoiceNetBroadcast(self,state): - """Enables or disables voice over network broadcast.""" - pass - - def enableVoiceRecording(self,state): - """Enables or disables voice recording.""" - pass - def getAmbienceVolume(self): """Returns the volume (0.0 to 1.0) for the Ambiance.""" pass - def getAudioDeviceName(self,index): - """Gets the name of audio device for the given index""" - pass - - def getDeviceName(self): - """Gets the name for the device being used by the audio system""" + def getFriendlyDeviceName(self): + """Returns the provided device name without any OpenAL prefixes applied.""" pass def getGUIVolume(self): """Returns the volume (0.0 to 1.0) for the GUI dialogs.""" pass - def getHighestMode(self): - """Gets the highest possible audio system mode""" - pass - def getMicLevel(self): """Returns the microphone recording level (0.0 to 1.0).""" pass - def getMode(self): - """Gets the audio system mode""" - pass - def getMusicVolume(self): """Returns the volume (0.0 to 1.0) for the Music.""" pass @@ -1329,8 +1305,12 @@ def getNPCVoiceVolume(self): """Returns the volume (0.0 to 1.0) for the NPC's voice.""" pass - def getNumAudioDevices(self): - """Returns the number of available audio devices.""" + def getPlaybackDevice(self): + """Gets the name for the device being used by the audio system.""" + pass + + def getPlaybackDevices(self): + """Gets the names of all available audio playback devices.""" pass def getPriorityCutoff(self): @@ -1353,10 +1333,6 @@ def isEnabled(self): """Is the audio enabled? Returns 1 if true otherwise returns 0.""" pass - def isHardwareAccelerated(self): - """Is audio hardware acceleration enabled? Returns 1 if true otherwise returns 0.""" - pass - def isMuted(self): """Are all sounds muted? Returns 1 if true otherwise returns 0.""" pass @@ -1365,10 +1341,6 @@ def isUsingEAXAcceleration(self): """Is EAX sound acceleration enabled? Returns 1 if true otherwise returns 0.""" pass - def isVoiceCompressionEnabled(self): - """Is voice compression enabled? Returns 1 if true otherwise returns 0.""" - pass - def isVoiceNetBroadcastEnabled(self): """Is voice over net enabled? Returns 1 if true otherwise returns 0.""" pass @@ -1385,23 +1357,11 @@ def pushToTalk(self,state): """Enables or disables 'push-to-talk'.""" pass - def recordFrame(self,size): - """Sets the voice packet frame size.""" - pass - - def recordSampleRate(self,sampleRate): - """Sets the recording sample rate.""" - pass - def setAmbienceVolume(self,volume): """Sets the Ambience volume (0.0 to 1.0) for the game. This only sets the volume for this game session.""" pass - def setDeviceName(self,devicename,restart): - """Sets the device name for the audio system, and optionally restarts it""" - pass - def setGUIVolume(self,volume): """Sets the GUI dialog volume (0.0 to 1.0) for the game. This only sets the volume for this game session.""" @@ -1415,10 +1375,6 @@ def setMicLevel(self,level): """Sets the microphone recording level (0.0 to 1.0).""" pass - def setMode(self,mode): - """Sets the audio system mode""" - pass - def setMusicVolume(self,volume): """Sets the Music volume (0.0 to 1.0) for the game. This only sets the volume for this game session.""" @@ -1429,6 +1385,10 @@ def setNPCVoiceVolume(self,volume): This only sets the volume for this game session.""" pass + def setPlaybackDevice(self,devicename,restart): + """Sets audio system output device by name, and optionally restarts it""" + pass + def setPriorityCutoff(self,priority): """Sets the sound priority""" pass @@ -1456,10 +1416,6 @@ def squelchLevel(self,level): """Sets the squelch level.""" pass - def supportsEAX(self): - """Returns true or false based on whether or not a the device specified supports EAX""" - pass - def unmuteAll(self): """Unmutes all sounds.""" pass @@ -1468,10 +1424,6 @@ def useEAXAcceleration(self,state): """Enables or disables EAX sound acceleration (requires hardware acceleration).""" pass - def useHardwareAcceleration(self,state): - """Enables or disables audio hardware acceleration.""" - pass - class ptAvatar: """Plasma avatar class""" def __init__(self):