diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:27:34 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:27:34 +0200 |
| commit | fd198a9cb1f033773102f54603bd06b98f3c7fb1 (patch) | |
| tree | 29eb553140487ad3c841b2c4348c122438c918a9 /src/lib/content.cc | |
| parent | 60d53efe2cb3bddf98ca3cba937247a8024e7d63 (diff) | |
Add and use Content::has_mapped_audio().
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index 6324050ec..f13201b93 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -570,3 +570,11 @@ Content::changed () const return (write_time_changed || calculate_digest() != digest()); } + + +bool +Content::has_mapped_audio() const +{ + return audio && !audio->mapping().mapped_output_channels().empty(); +} + |
