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
ad2c7304
Commit
ad2c7304
authored
Nov 23, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MusicChunk: use C++11 initializers
parent
4dd1309c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
MusicChunk.hxx
src/MusicChunk.hxx
+5
-9
No files found.
src/MusicChunk.hxx
View file @
ad2c7304
...
@@ -48,7 +48,7 @@ struct MusicChunk {
...
@@ -48,7 +48,7 @@ struct MusicChunk {
* An optional chunk which should be mixed into this chunk.
* An optional chunk which should be mixed into this chunk.
* This is used for cross-fading.
* This is used for cross-fading.
*/
*/
MusicChunk
*
other
;
MusicChunk
*
other
=
nullptr
;
/**
/**
* The current mix ratio for cross-fading: 1.0 means play 100%
* The current mix ratio for cross-fading: 1.0 means play 100%
...
@@ -57,7 +57,7 @@ struct MusicChunk {
...
@@ -57,7 +57,7 @@ struct MusicChunk {
float
mix_ratio
;
float
mix_ratio
;
/** number of bytes stored in this chunk */
/** number of bytes stored in this chunk */
uint16_t
length
;
uint16_t
length
=
0
;
/** current bit rate of the source file */
/** current bit rate of the source file */
uint16_t
bit_rate
;
uint16_t
bit_rate
;
...
@@ -71,7 +71,7 @@ struct MusicChunk {
...
@@ -71,7 +71,7 @@ struct MusicChunk {
* object is owned by this chunk, and must be freed when this
* object is owned by this chunk, and must be freed when this
* chunk is deinitialized.
* chunk is deinitialized.
*/
*/
Tag
*
tag
;
Tag
*
tag
=
nullptr
;
/**
/**
* Replay gain information associated with this chunk.
* Replay gain information associated with this chunk.
...
@@ -84,7 +84,7 @@ struct MusicChunk {
...
@@ -84,7 +84,7 @@ struct MusicChunk {
* changed since the last chunk. The magic value 0 indicates
* changed since the last chunk. The magic value 0 indicates
* that there is no replay gain info available.
* that there is no replay gain info available.
*/
*/
unsigned
replay_gain_serial
;
unsigned
replay_gain_serial
=
0
;
/** the data (probably PCM) */
/** the data (probably PCM) */
uint8_t
data
[
CHUNK_SIZE
];
uint8_t
data
[
CHUNK_SIZE
];
...
@@ -93,11 +93,7 @@ struct MusicChunk {
...
@@ -93,11 +93,7 @@ struct MusicChunk {
AudioFormat
audio_format
;
AudioFormat
audio_format
;
#endif
#endif
MusicChunk
()
MusicChunk
()
=
default
;
:
other
(
nullptr
),
length
(
0
),
tag
(
nullptr
),
replay_gain_serial
(
0
)
{}
~
MusicChunk
();
~
MusicChunk
();
...
...
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