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
e01df06c
Commit
e01df06c
authored
Dec 13, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/null: implement output_plugin method delay()
parent
6584897b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
null_output_plugin.c
src/output/null_output_plugin.c
+11
-3
No files found.
src/output/null_output_plugin.c
View file @
e01df06c
...
...
@@ -79,6 +79,16 @@ null_close(struct audio_output *ao)
timer_free
(
nd
->
timer
);
}
static
unsigned
null_delay
(
struct
audio_output
*
ao
)
{
struct
null_data
*
nd
=
(
struct
null_data
*
)
ao
;
return
nd
->
sync
&&
nd
->
timer
->
started
?
timer_delay
(
nd
->
timer
)
:
0
;
}
static
size_t
null_play
(
struct
audio_output
*
ao
,
G_GNUC_UNUSED
const
void
*
chunk
,
size_t
size
,
G_GNUC_UNUSED
GError
**
error
)
...
...
@@ -91,9 +101,6 @@ null_play(struct audio_output *ao, G_GNUC_UNUSED const void *chunk, size_t size,
if
(
!
timer
->
started
)
timer_start
(
timer
);
else
timer_sync
(
timer
);
timer_add
(
timer
,
size
);
return
size
;
...
...
@@ -116,6 +123,7 @@ const struct audio_output_plugin null_output_plugin = {
.
finish
=
null_finish
,
.
open
=
null_open
,
.
close
=
null_close
,
.
delay
=
null_delay
,
.
play
=
null_play
,
.
cancel
=
null_cancel
,
};
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