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
3f6fe915
Commit
3f6fe915
authored
Sep 08, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output: const plugin structures
Since the plugin struct is never modified, we should store it in constant locations.
parent
be046b25
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
11 deletions
+11
-11
audioOutput_alsa.c
src/audioOutputs/audioOutput_alsa.c
+1
-1
audioOutput_ao.c
src/audioOutputs/audioOutput_ao.c
+1
-1
audioOutput_fifo.c
src/audioOutputs/audioOutput_fifo.c
+1
-1
audioOutput_jack.c
src/audioOutputs/audioOutput_jack.c
+1
-1
audioOutput_mvp.c
src/audioOutputs/audioOutput_mvp.c
+1
-1
audioOutput_null.c
src/audioOutputs/audioOutput_null.c
+1
-1
audioOutput_oss.c
src/audioOutputs/audioOutput_oss.c
+1
-1
audioOutput_osx.c
src/audioOutputs/audioOutput_osx.c
+1
-1
audioOutput_pulse.c
src/audioOutputs/audioOutput_pulse.c
+1
-1
audioOutput_shout.c
src/audioOutputs/audioOutput_shout.c
+1
-1
output_api.h
src/output_api.h
+1
-1
No files found.
src/audioOutputs/audioOutput_alsa.c
View file @
3f6fe915
...
...
@@ -413,7 +413,7 @@ static int alsa_playAudio(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
alsaPlugin
=
{
const
struct
audio_output_plugin
alsaPlugin
=
{
"alsa"
,
alsa_testDefault
,
alsa_initDriver
,
...
...
src/audioOutputs/audioOutput_ao.c
View file @
3f6fe915
...
...
@@ -242,7 +242,7 @@ static int audioOutputAo_play(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
aoPlugin
=
{
const
struct
audio_output_plugin
aoPlugin
=
{
"ao"
,
NULL
,
audioOutputAo_initDriver
,
...
...
src/audioOutputs/audioOutput_fifo.c
View file @
3f6fe915
...
...
@@ -272,7 +272,7 @@ static int fifo_playAudio(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
fifoPlugin
=
{
const
struct
audio_output_plugin
fifoPlugin
=
{
"fifo"
,
NULL
,
/* testDefaultDeviceFunc */
fifo_initDriver
,
...
...
src/audioOutputs/audioOutput_jack.c
View file @
3f6fe915
...
...
@@ -430,7 +430,7 @@ static int jack_playAudio(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
jackPlugin
=
{
const
struct
audio_output_plugin
jackPlugin
=
{
"jack"
,
jack_testDefault
,
jack_initDriver
,
...
...
src/audioOutputs/audioOutput_mvp.c
View file @
3f6fe915
...
...
@@ -257,7 +257,7 @@ static int mvp_playAudio(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
mvpPlugin
=
{
const
struct
audio_output_plugin
mvpPlugin
=
{
"mvp"
,
mvp_testDefault
,
mvp_initDriver
,
...
...
src/audioOutputs/audioOutput_null.c
View file @
3f6fe915
...
...
@@ -63,7 +63,7 @@ static void null_dropBufferedAudio(struct audio_output *audioOutput)
timer_reset
(
audioOutput
->
data
);
}
struct
audio_output_plugin
nullPlugin
=
{
const
struct
audio_output_plugin
nullPlugin
=
{
"null"
,
NULL
,
null_initDriver
,
...
...
src/audioOutputs/audioOutput_oss.c
View file @
3f6fe915
...
...
@@ -549,7 +549,7 @@ static int oss_playAudio(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
ossPlugin
=
{
const
struct
audio_output_plugin
ossPlugin
=
{
"oss"
,
oss_testDefault
,
oss_initDriver
,
...
...
src/audioOutputs/audioOutput_osx.c
View file @
3f6fe915
...
...
@@ -355,7 +355,7 @@ static int osx_play(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
osxPlugin
=
{
const
struct
audio_output_plugin
osxPlugin
=
{
"osx"
,
osx_testDefault
,
osx_initDriver
,
...
...
src/audioOutputs/audioOutput_pulse.c
View file @
3f6fe915
...
...
@@ -200,7 +200,7 @@ static int pulse_playAudio(struct audio_output *audioOutput,
return
0
;
}
struct
audio_output_plugin
pulsePlugin
=
{
const
struct
audio_output_plugin
pulsePlugin
=
{
"pulse"
,
pulse_testDefault
,
pulse_initDriver
,
...
...
src/audioOutputs/audioOutput_shout.c
View file @
3f6fe915
...
...
@@ -680,7 +680,7 @@ static void myShout_setTag(struct audio_output *audioOutput,
sd
->
tagToSend
=
1
;
}
struct
audio_output_plugin
shoutPlugin
=
{
const
struct
audio_output_plugin
shoutPlugin
=
{
"shout"
,
NULL
,
myShout_initDriver
,
...
...
src/output_api.h
View file @
3f6fe915
...
...
@@ -28,7 +28,7 @@
#include "log.h"
#include "os_compat.h"
#define DISABLED_AUDIO_OUTPUT_PLUGIN(plugin) struct audio_output_plugin plugin;
#define DISABLED_AUDIO_OUTPUT_PLUGIN(plugin)
const
struct audio_output_plugin plugin;
struct
audio_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