Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
2098b94b
Commit
2098b94b
authored
Oct 26, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderThread: move code to DecoderControl::CycleMixRamp()
parent
59ad6265
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
DecoderControl.cxx
src/DecoderControl.cxx
+5
-2
DecoderControl.hxx
src/DecoderControl.hxx
+6
-1
DecoderThread.cxx
src/DecoderThread.cxx
+1
-3
No files found.
src/DecoderControl.cxx
View file @
2098b94b
...
...
@@ -144,8 +144,11 @@ decoder_control::MixRampEnd(char *_mixramp_end)
}
void
decoder_control
::
MixRampPrevEnd
(
char
*
_mixramp_prev_end
)
decoder_control
::
CycleMixRamp
(
)
{
g_free
(
mixramp_start
);
mixramp_start
=
nullptr
;
g_free
(
mixramp_prev_end
);
mixramp_prev_end
=
_mixramp_prev_end
;
mixramp_prev_end
=
mixramp_end
;
mixramp_end
=
nullptr
;
}
src/DecoderControl.hxx
View file @
2098b94b
...
...
@@ -364,7 +364,12 @@ public:
void
MixRampStart
(
char
*
_mixramp_start
);
void
MixRampEnd
(
char
*
_mixramp_end
);
void
MixRampPrevEnd
(
char
*
_mixramp_prev_end
);
/**
* Move mixramp_end to mixramp_prev_end and clear
* mixramp_start/mixramp_end.
*/
void
CycleMixRamp
();
};
#endif
src/DecoderThread.cxx
View file @
2098b94b
...
...
@@ -412,9 +412,7 @@ decoder_task(void *arg)
switch
(
dc
.
command
)
{
case
DecoderCommand
:
:
START
:
dc
.
MixRampStart
(
nullptr
);
dc
.
MixRampPrevEnd
(
dc
.
mixramp_end
);
dc
.
mixramp_end
=
nullptr
;
/* Don't free, it's copied above. */
dc
.
CycleMixRamp
();
dc
.
replay_gain_prev_db
=
dc
.
replay_gain_db
;
dc
.
replay_gain_db
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment