Skip to content

Status commands

This class is accessed via the status property on a CamillaClient instance.

It provides methods for reading various status parameters.

class: Status

Bases: _CommandGroup

Collection of methods for reading status

Source code in camilladsp/camilladsp.py
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
class Status(_CommandGroup):
    """
    Collection of methods for reading status
    """

    def rate_adjust(self) -> float:
        """
        Get current value for rate adjust, 1.0 means 1:1 resampling.

        Returns:
            float: Rate adjust value.
        """
        adj = self.client.query("GetRateAdjust")
        return float(adj)

    def buffer_level(self) -> int:
        """
        Get current buffer level of the playback device.

        Returns:
            int: Buffer level in frames.
        """
        level = self.client.query("GetBufferLevel")
        return int(level)

    def clipped_samples(self) -> int:
        """
        Get number of clipped samples since the config was loaded.

        Returns:
            int: Number of clipped samples.
        """
        clipped = self.client.query("GetClippedSamples")
        return int(clipped)

    def processing_load(self) -> float:
        """
        Get processing load in percent.

        Returns:
            float: Current load.
        """
        load = self.client.query("GetProcessingLoad")
        return float(load)

buffer_level()

Get current buffer level of the playback device.

Returns:

Name Type Description
int int

Buffer level in frames.

Source code in camilladsp/camilladsp.py
166
167
168
169
170
171
172
173
174
def buffer_level(self) -> int:
    """
    Get current buffer level of the playback device.

    Returns:
        int: Buffer level in frames.
    """
    level = self.client.query("GetBufferLevel")
    return int(level)

clipped_samples()

Get number of clipped samples since the config was loaded.

Returns:

Name Type Description
int int

Number of clipped samples.

Source code in camilladsp/camilladsp.py
176
177
178
179
180
181
182
183
184
def clipped_samples(self) -> int:
    """
    Get number of clipped samples since the config was loaded.

    Returns:
        int: Number of clipped samples.
    """
    clipped = self.client.query("GetClippedSamples")
    return int(clipped)

processing_load()

Get processing load in percent.

Returns:

Name Type Description
float float

Current load.

Source code in camilladsp/camilladsp.py
186
187
188
189
190
191
192
193
194
def processing_load(self) -> float:
    """
    Get processing load in percent.

    Returns:
        float: Current load.
    """
    load = self.client.query("GetProcessingLoad")
    return float(load)

rate_adjust()

Get current value for rate adjust, 1.0 means 1:1 resampling.

Returns:

Name Type Description
float float

Rate adjust value.

Source code in camilladsp/camilladsp.py
156
157
158
159
160
161
162
163
164
def rate_adjust(self) -> float:
    """
    Get current value for rate adjust, 1.0 means 1:1 resampling.

    Returns:
        float: Rate adjust value.
    """
    adj = self.client.query("GetRateAdjust")
    return float(adj)