Added 'audio' method to ChannelMap

Added `audio` property to channelmap to test if it contains any audio channels.
This commit is contained in:
Jamie Hardt
2019-08-18 10:57:16 -07:00
parent c56d2066ad
commit 566e6257f4
4 changed files with 8 additions and 2 deletions

View File

@@ -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'