diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-14 00:06:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-14 00:06:49 +0100 |
| commit | f1ec916c9c3f4cf2629799d313e77da77cdfdf2b (patch) | |
| tree | 6004b2481aa695fb1d6fc10e08dcac466e4ab04c /src/lib/player.cc | |
| parent | f73d5b46100d30cd8abc8beaaf5195bd633d9f4d (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/player.cc')
| -rw-r--r-- | src/lib/player.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 91daeed32..4a4093323 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -1051,7 +1051,7 @@ Player::audio (weak_ptr<Piece> wp, AudioStreamPtr stream, ContentAudio content_a /* Gain and fade */ - auto const fade_coeffs = content->fade (content_audio.frame, content_audio.audio->frames(), rfr); + auto const fade_coeffs = content->fade (stream, content_audio.frame, content_audio.audio->frames(), rfr); if (content->gain() != 0 || !fade_coeffs.empty()) { auto gain_buffers = make_shared<AudioBuffers>(content_audio.audio); if (!fade_coeffs.empty()) { |
