Source code for platypush.message.event.sound

from platypush.message.event import Event


[docs]class SoundEvent(Event): """ Base class for sound events """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class SoundPlaybackStartedEvent(SoundEvent): """ Event triggered when a new sound playback starts """
[docs] def __init__(self, filename=None, *args, **kwargs): super().__init__(*args, filename=filename, **kwargs)
[docs]class SoundPlaybackStoppedEvent(SoundEvent): """ Event triggered when the sound playback stops """
[docs] def __init__(self, filename=None, *args, **kwargs): super().__init__(*args, filename=filename, **kwargs)
[docs]class SoundPlaybackPausedEvent(SoundEvent): """ Event triggered when the sound playback pauses """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class SoundRecordingStartedEvent(SoundEvent): """ Event triggered when a new recording starts """
[docs] def __init__(self, filename=None, *args, **kwargs): super().__init__(*args, filename=filename, **kwargs)
[docs]class SoundRecordingStoppedEvent(SoundEvent): """ Event triggered when a sound recording stops """
[docs] def __init__(self, filename=None, *args, **kwargs): super().__init__(*args, filename=filename, **kwargs)
[docs]class SoundRecordingPausedEvent(SoundEvent): """ Event triggered when a sound recording pauses """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
# vim:sw=4:ts=4:et: