mirror of
https://github.com/iluvcapra/pycmx.git
synced 2026-01-01 17:30:55 +00:00
Added 'audio' method to ChannelMap
Added `audio` property to channelmap to test if it contains any audio channels.
This commit is contained in:
@@ -27,6 +27,11 @@ class ChannelMap:
|
||||
'True if video is included'
|
||||
return self.v
|
||||
|
||||
@property
|
||||
def audio(self):
|
||||
'True if an audio channel is included'
|
||||
return len(self._audio_channel_set) > 0
|
||||
|
||||
@property
|
||||
def channels(self):
|
||||
'A generator for each audio channel'
|
||||
|
||||
Reference in New Issue
Block a user