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
c457d8e4
Commit
c457d8e4
authored
Jul 16, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'can' of
git://github.com/Wang-Yue/MPD
parents
ba416900
c58dffa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
OSXOutputPlugin.cxx
src/output/plugins/OSXOutputPlugin.cxx
+13
-1
No files found.
src/output/plugins/OSXOutputPlugin.cxx
View file @
c457d8e4
...
...
@@ -101,6 +101,7 @@ private:
std
::
chrono
::
steady_clock
::
duration
Delay
()
const
noexcept
override
;
size_t
Play
(
const
void
*
chunk
,
size_t
size
)
override
;
bool
Pause
()
override
;
void
Cancel
()
noexcept
override
;
};
static
constexpr
Domain
osx_output_domain
(
"osx_output"
);
...
...
@@ -909,7 +910,18 @@ bool OSXOutput::Pause() {
}
return
true
;
}
void
OSXOutput
::
Cancel
()
noexcept
{
AudioOutputUnitStop
(
au
);
ring_buffer
->
reset
();
#ifdef ENABLE_DSD
pcm_export
->
Reset
();
#endif
AudioOutputUnitStart
(
au
);
}
int
osx_output_get_volume
(
OSXOutput
&
output
)
{
...
...
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