# External Libraries
import numpy as np

# IzunaDSP
from izunadsp.abc.dsp_part import DSPPart


class Volume(DSPPart):
    def __init__(self):
        super().__init__()
        self.volume = 1.0

    def set_volume(self, volume: float):
        self.volume = volume

    def handle(self, audio: np.array) -> np.array:
        left, right = self.to_stereo(audio)
        return self.to_mono(left * self.volume, right * self.volume)

4a1244debbb3dea39014920b5550d39450a44496
<mask token>


class Volume(DSPPart):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Volume(DSPPart):
    <mask token>
    <mask token>

    def handle(self, audio: np.array) ->np.array:
        left, right = self.to_stereo(audio)
        return self.to_mono(left * self.volume, right * self.volume)

<mask token>


class Volume(DSPPart):

    def __init__(self):
        super().__init__()
        self.volume = 1.0

    def set_volume(self, volume: float):
        self.volume = volume

    def handle(self, audio: np.array) ->np.array:
        left, right = self.to_stereo(audio)
        return self.to_mono(left * self.volume, right * self.volume)

import numpy as np
from izunadsp.abc.dsp_part import DSPPart


class Volume(DSPPart):

    def __init__(self):
        super().__init__()
        self.volume = 1.0

    def set_volume(self, volume: float):
        self.volume = volume

    def handle(self, audio: np.array) ->np.array:
        left, right = self.to_stereo(audio)
        return self.to_mono(left * self.volume, right * self.volume)

# External Libraries
import numpy as np

# IzunaDSP
from izunadsp.abc.dsp_part import DSPPart


class Volume(DSPPart):
    def __init__(self):
        super().__init__()
        self.volume = 1.0

    def set_volume(self, volume: float):
        self.volume = volume

    def handle(self, audio: np.array) -> np.array:
        left, right = self.to_stereo(audio)
        return self.to_mono(left * self.volume, right * self.volume)
