summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-26 14:08:09 +0200
committerMax Kellermann <max@duempel.org>2013-10-26 14:08:09 +0200
commit59ad6265a170d8105183ac65bd6663d53124d360 (patch)
treec4e86c5bcf0ad44a5b857b4f30c8817090d85109
parent067572c6dd44d0abde9bf34220ba2f45d0c120ca (diff)
DecoderControl: add MixRamp getters
-rw-r--r--src/DecoderControl.hxx12
-rw-r--r--src/PlayerThread.cxx4
2 files changed, 14 insertions, 2 deletions
diff --git a/src/DecoderControl.hxx b/src/DecoderControl.hxx
index bc2e7d786..47fb81c9a 100644
--- a/src/DecoderControl.hxx
+++ b/src/DecoderControl.hxx
@@ -350,6 +350,18 @@ public:
void Quit();
+ const char *GetMixRampStart() const {
+ return mixramp_start;
+ }
+
+ const char *GetMixRampEnd() const {
+ return mixramp_end;
+ }
+
+ const char *GetMixRampPreviousEnd() const {
+ return mixramp_prev_end;
+ }
+
void MixRampStart(char *_mixramp_start);
void MixRampEnd(char *_mixramp_end);
void MixRampPrevEnd(char *_mixramp_prev_end);
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index 35f697c45..0a624da47 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -1011,8 +1011,8 @@ Player::Run()
pc.mixramp_delay_seconds,
dc.replay_gain_db,
dc.replay_gain_prev_db,
- dc.mixramp_start,
- dc.mixramp_prev_end,
+ dc.GetMixRampStart(),
+ dc.GetMixRampPreviousEnd(),
dc.out_audio_format,
play_audio_format,
buffer.GetSize() -