ordigi/elodie/media/audio.py

29 lines
589 B
Python
Raw Normal View History

"""
2016-01-08 23:49:06 +01:00
The audio module contains classes specifically for dealing with audio files.
2021-06-20 19:51:21 +02:00
The :class:`Audio` class inherits from the :class:`~elodie.media.Media`
2016-01-08 23:49:06 +01:00
class.
.. moduleauthor:: Jaisen Mathai <jaisen@jmathai.com>
"""
2021-06-20 19:51:21 +02:00
from .media import Media
2021-06-20 19:51:21 +02:00
class Audio(Media):
2016-01-08 23:49:06 +01:00
"""An audio object.
:param str source: The fully qualified path to the audio file.
"""
__name__ = 'Audio'
2016-01-08 23:49:06 +01:00
#: Valid extensions for audio files.
extensions = ('m4a',)
def __init__(self, source=None):
2021-06-20 19:51:21 +02:00
super().__init__(source)
def is_valid(self):
return super().is_valid()