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
667481c3
Commit
667481c3
authored
Jan 29, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OutputThread: move more functions into the AudioOutput class
parent
af716057
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
Internal.hxx
src/output/Internal.hxx
+45
-0
OutputThread.cxx
src/output/OutputThread.cxx
+0
-0
No files found.
src/output/Internal.hxx
View file @
667481c3
...
...
@@ -368,6 +368,51 @@ struct AudioOutput {
* Set the "allow_play" and signal the thread.
*/
void
LockAllowPlay
();
private
:
void
CommandFinished
();
bool
Enable
();
void
Disable
();
void
Open
();
void
Close
(
bool
drain
);
void
Reopen
();
AudioFormat
OpenFilter
(
AudioFormat
&
format
,
Error
&
error_r
);
void
CloseFilter
();
void
ReopenFilter
();
/**
* Wait until the output's delay reaches zero.
*
* @return true if playback should be continued, false if a
* command was issued
*/
bool
WaitForDelay
();
gcc_pure
const
music_chunk
*
GetNextChunk
()
const
;
bool
PlayChunk
(
const
music_chunk
*
chunk
);
/**
* Plays all remaining chunks, until the tail of the pipe has
* been reached (and no more chunks are queued), or until a
* command is received.
*
* @return true if at least one chunk has been available,
* false if the tail of the pipe was already reached
*/
bool
Play
();
void
Pause
();
/**
* The OutputThread.
*/
void
Task
();
static
void
Task
(
void
*
arg
);
};
/**
...
...
src/output/OutputThread.cxx
View file @
667481c3
This diff is collapsed.
Click to expand it.
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