from deprecation import deprecated
from ntgcalls import InputMode

from ....statictypes import statictypes
from ...raw import AudioParameters
from ...raw import AudioStream


@deprecated(
    deprecated_in='1.0.0.dev1',
    details='Use herdcalls.types.AudioStream instead.',
)
class InputAudioStream(AudioStream):
    @statictypes
    def __init__(
        self,
        path: str,
        parameters: AudioParameters = AudioParameters(),
        header_enabled: bool = False,
    ):
        super().__init__(InputMode.File, path, parameters)
        self.header_enabled = header_enabled
