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
f7141c92
Commit
f7141c92
authored
Sep 21, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Control: convert to class, make various attributes private
parent
c2a2573a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
Bridge.hxx
src/decoder/Bridge.hxx
+1
-1
Control.hxx
src/decoder/Control.hxx
+8
-1
No files found.
src/decoder/Bridge.hxx
View file @
f7141c92
...
...
@@ -29,7 +29,7 @@
class
PcmConvert
;
struct
MusicChunk
;
struct
DecoderControl
;
class
DecoderControl
;
struct
Tag
;
/**
...
...
src/decoder/Control.hxx
View file @
f7141c92
...
...
@@ -61,12 +61,13 @@ enum class DecoderState : uint8_t {
ERROR
,
};
struct
DecoderControl
final
:
InputStreamHandler
{
class
DecoderControl
final
:
public
InputStreamHandler
{
/**
* The handle of the decoder thread.
*/
Thread
thread
;
public
:
/**
* This lock protects #state and #command.
*
...
...
@@ -103,8 +104,10 @@ struct DecoderControl final : InputStreamHandler {
*/
std
::
exception_ptr
error
;
private
:
bool
quit
;
public
:
/**
* Is the client currently waiting for the DecoderThread? If
* false, the DecoderThread may omit invoking Cond::signal(),
...
...
@@ -116,11 +119,13 @@ struct DecoderControl final : InputStreamHandler {
bool
seekable
;
SongTime
seek_time
;
private
:
/**
* The "audio_output_format" setting.
*/
const
AudioFormat
configured_audio_format
;
public
:
/** the format of the song file */
AudioFormat
in_audio_format
;
...
...
@@ -167,8 +172,10 @@ struct DecoderControl final : InputStreamHandler {
float
replay_gain_db
=
0
;
float
replay_gain_prev_db
=
0
;
private
:
MixRampInfo
mix_ramp
,
previous_mix_ramp
;
public
:
/**
* @param _mutex see #mutex
* @param _client_cond see #client_cond
...
...
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