summaryrefslogtreecommitdiff
path: root/src/lib/audio_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-02-14 00:06:49 +0100
committerCarl Hetherington <cth@carlh.net>2022-02-14 00:06:49 +0100
commitf1ec916c9c3f4cf2629799d313e77da77cdfdf2b (patch)
tree6004b2481aa695fb1d6fc10e08dcac466e4ab04c /src/lib/audio_content.h
parentf73d5b46100d30cd8abc8beaaf5195bd633d9f4d (diff)
Fix audio fading.
The ::fade() method needs to know the stream it is working with, rather than assuming its content has only one stream.
Diffstat (limited to 'src/lib/audio_content.h')
-rw-r--r--src/lib/audio_content.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h
index d736fc38f..064cc42f0 100644
--- a/src/lib/audio_content.h
+++ b/src/lib/audio_content.h
@@ -114,7 +114,7 @@ public:
* @return a fade coefficient for @ref length samples starting at an offset @frame within
* the content, or an empty vector if the given section has no fade.
*/
- std::vector<float> fade (Frame frame, Frame length, int frame_rate) const;
+ std::vector<float> fade (AudioStreamPtr stream, Frame frame, Frame length, int frame_rate) const;
static std::shared_ptr<AudioContent> from_xml (Content* parent, cxml::ConstNodePtr, int version);