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
051cdc96
Commit
051cdc96
authored
Nov 23, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MusicPipe: use C++11 initializers
parent
4de5c216
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
MusicPipe.hxx
src/MusicPipe.hxx
+5
-10
No files found.
src/MusicPipe.hxx
View file @
051cdc96
...
...
@@ -38,31 +38,26 @@ class MusicBuffer;
*/
class
MusicPipe
{
/** the first chunk */
MusicChunk
*
head
;
MusicChunk
*
head
=
nullptr
;
/** a pointer to the tail of the chunk */
MusicChunk
**
tail_r
;
MusicChunk
**
tail_r
=
&
head
;
/** the current number of chunks */
unsigned
size
;
unsigned
size
=
0
;
/** a mutex which protects #head and #tail_r */
mutable
Mutex
mutex
;
#ifndef NDEBUG
AudioFormat
audio_format
;
AudioFormat
audio_format
=
AudioFormat
::
Undefined
()
;
#endif
public
:
/**
* Creates a new #MusicPipe object. It is empty.
*/
MusicPipe
()
:
head
(
nullptr
),
tail_r
(
&
head
),
size
(
0
)
{
#ifndef NDEBUG
audio_format
.
Clear
();
#endif
}
MusicPipe
()
=
default
;
/**
* Frees the object. It must be empty now.
...
...
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