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
e1707c7b
Commit
e1707c7b
authored
Jan 22, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
null: no CamelCase
Renamed functions and variables.
parent
eefe97bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
null_plugin.c
src/output/null_plugin.c
+18
-13
output_list.c
src/output_list.c
+2
-2
No files found.
src/output/null_plugin.c
View file @
e1707c7b
...
...
@@ -26,25 +26,29 @@ struct null_data {
};
static
void
*
null_init
Driver
(
G_GNUC_UNUSED
struct
audio_output
*
audioO
utput
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
struct
config_param
*
param
)
null_init
(
G_GNUC_UNUSED
struct
audio_output
*
audio_o
utput
,
G_GNUC_UNUSED
const
struct
audio_format
*
audio_format
,
G_GNUC_UNUSED
struct
config_param
*
param
)
{
struct
null_data
*
nd
=
g_new
(
struct
null_data
,
1
);
nd
->
timer
=
NULL
;
return
nd
;
}
static
bool
null_open
Device
(
void
*
data
,
struct
audio_format
*
audio_format
)
null_open
(
void
*
data
,
struct
audio_format
*
audio_format
)
{
struct
null_data
*
nd
=
data
;
nd
->
timer
=
timer_new
(
audio_format
);
return
true
;
}
static
void
null_closeDevice
(
void
*
data
)
static
void
null_close
(
void
*
data
)
{
struct
null_data
*
nd
=
data
;
...
...
@@ -55,7 +59,7 @@ static void null_closeDevice(void *data)
}
static
bool
null_play
Audio
(
void
*
data
,
G_GNUC_UNUSED
const
char
*
playC
hunk
,
size_t
size
)
null_play
(
void
*
data
,
G_GNUC_UNUSED
const
char
*
c
hunk
,
size_t
size
)
{
struct
null_data
*
nd
=
data
;
Timer
*
timer
=
nd
->
timer
;
...
...
@@ -70,18 +74,19 @@ null_playAudio(void *data, G_GNUC_UNUSED const char *playChunk, size_t size)
return
true
;
}
static
void
null_dropBufferedAudio
(
void
*
data
)
static
void
null_cancel
(
void
*
data
)
{
struct
null_data
*
nd
=
data
;
timer_reset
(
nd
->
timer
);
}
const
struct
audio_output_plugin
null
P
lugin
=
{
const
struct
audio_output_plugin
null
_output_p
lugin
=
{
.
name
=
"null"
,
.
init
=
null_init
Driver
,
.
open
=
null_open
Device
,
.
play
=
null_playAudio
,
.
cancel
=
null_dropBufferedAudio
,
.
c
lose
=
null_closeDevice
,
.
init
=
null_init
,
.
open
=
null_open
,
.
close
=
null_close
,
.
play
=
null_play
,
.
c
ancel
=
null_cancel
,
};
src/output_list.c
View file @
e1707c7b
...
...
@@ -21,7 +21,7 @@
#include "config.h"
extern
const
struct
audio_output_plugin
shoutPlugin
;
extern
const
struct
audio_output_plugin
null
P
lugin
;
extern
const
struct
audio_output_plugin
null
_output_p
lugin
;
extern
const
struct
audio_output_plugin
fifoPlugin
;
extern
const
struct
audio_output_plugin
alsaPlugin
;
extern
const
struct
audio_output_plugin
aoPlugin
;
...
...
@@ -35,7 +35,7 @@ const struct audio_output_plugin *audio_output_plugins[] = {
#ifdef HAVE_SHOUT
&
shoutPlugin
,
#endif
&
null
P
lugin
,
&
null
_output_p
lugin
,
#ifdef HAVE_FIFO
&
fifoPlugin
,
#endif
...
...
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