]> git.parisson.com Git - timeside.git/commitdiff
api: require to call parent from setup(), fix and clarify IDecoder.resolution()
authorOlivier Guilyardi <olivier@samalyse.com>
Wed, 24 Feb 2010 12:25:42 +0000 (12:25 +0000)
committerOlivier Guilyardi <olivier@samalyse.com>
Wed, 24 Feb 2010 12:25:42 +0000 (12:25 +0000)
api.py

diff --git a/api.py b/api.py
index 702f510ac858738e06b71ae3305c5535e14d6ac4..4ecaa3aa30e65d1243a5a1bcdb6de2e08d74735c 100644 (file)
--- a/api.py
+++ b/api.py
@@ -43,6 +43,8 @@ class IProcessor(Interface):
         these arguments is passed to an output-only processor such as a decoder.
         """
 
+        # implementations should always call the parent method
+
     def channels(self):
         """Number of channels in the data returned by process(). May be different from
         the number of channels passed to setup()"""
@@ -135,7 +137,8 @@ class IDecoder(IProcessor):
         """Return a user-friendly encoding string"""
 
     def resolution():
-        """Return the sample depth"""
+        """Return the sample width (8, 16, etc..) of original audio file/stream,
+           or None if not applicable/known"""
 
     def metadata(self):
         """Return the metadata embedded into the encoded stream, if any."""