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
ba9a2c34
Commit
ba9a2c34
authored
Jul 14, 2006
by
J. Alexander Treuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a macro to declare disabled audio output plugins
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4321
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
26447de0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
94 deletions
+26
-94
audioOutput.h
src/audioOutput.h
+13
-1
audioOutput_alsa.c
src/audioOutputs/audioOutput_alsa.c
+2
-14
audioOutput_ao.c
src/audioOutputs/audioOutput_ao.c
+2
-13
audioOutput_mvp.c
src/audioOutputs/audioOutput_mvp.c
+2
-14
audioOutput_oss.c
src/audioOutputs/audioOutput_oss.c
+2
-15
audioOutput_osx.c
src/audioOutputs/audioOutput_osx.c
+2
-13
audioOutput_pulse.c
src/audioOutputs/audioOutput_pulse.c
+1
-11
audioOutput_shout.c
src/audioOutputs/audioOutput_shout.c
+2
-13
No files found.
src/audioOutput.h
View file @
ba9a2c34
...
...
@@ -26,6 +26,18 @@
#include "tag.h"
#include "conf.h"
#define DISABLED_AUDIO_OUTPUT_PLUGIN(plugin) \
AudioOutputPlugin plugin = { \
NULL, \
NULL, \
NULL, \
NULL, \
NULL, \
NULL, \
NULL, \
NULL, \
};
typedef
struct
_AudioOutput
AudioOutput
;
typedef
int
(
*
AudioOutputTestDefaultDeviceFunc
)
();
...
...
@@ -80,7 +92,7 @@ typedef struct _AudioOutputPlugin {
AudioOutputPlayFunc
playFunc
;
AudioOutputDropBufferedAudioFunc
dropBufferedAudioFunc
;
AudioOutputCloseDeviceFunc
closeDeviceFunc
;
AudioOutputSendMetadataFunc
sendMetdataFunc
;
AudioOutputSendMetadataFunc
sendMetdataFunc
;
}
AudioOutputPlugin
;
void
initAudioOutputPlugins
();
...
...
src/audioOutputs/audioOutput_alsa.c
View file @
ba9a2c34
...
...
@@ -371,23 +371,11 @@ AudioOutputPlugin alsaPlugin =
alsa_playAudio
,
alsa_dropBufferedAudio
,
alsa_closeDevice
,
NULL
/* sendMetadataFunc */
NULL
,
/* sendMetadataFunc */
};
#else
/* HAVE ALSA */
AudioOutputPlugin
alsaPlugin
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
/* sendMetadataFunc */
};
DISABLED_AUDIO_OUTPUT_PLUGIN
(
alsaPlugin
)
#endif
/* HAVE_ALSA */
src/audioOutputs/audioOutput_ao.c
View file @
ba9a2c34
...
...
@@ -244,24 +244,13 @@ AudioOutputPlugin aoPlugin =
audioOutputAo_play
,
audioOutputAo_dropBufferedAudio
,
audioOutputAo_closeDevice
,
NULL
/* sendMetadataFunc */
NULL
,
/* sendMetadataFunc */
};
#else
#include <stdio.h>
AudioOutputPlugin
aoPlugin
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
};
DISABLED_AUDIO_OUTPUT_PLUGIN
(
aoPlugin
)
#endif
src/audioOutputs/audioOutput_mvp.c
View file @
ba9a2c34
...
...
@@ -274,23 +274,11 @@ AudioOutputPlugin mvpPlugin =
mvp_playAudio
,
mvp_dropBufferedAudio
,
mvp_closeDevice
,
NULL
/* sendMetadataFunc */
NULL
,
/* sendMetadataFunc */
};
#else
/* HAVE_MVP */
AudioOutputPlugin
mvpPlugin
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
/* sendMetadataFunc */
};
DISABLED_AUDIO_OUTPUT_PLUGIN
(
mvpPlugin
)
#endif
/* HAVE_MVP */
src/audioOutputs/audioOutput_oss.c
View file @
ba9a2c34
...
...
@@ -555,24 +555,11 @@ AudioOutputPlugin ossPlugin =
oss_playAudio
,
oss_dropBufferedAudio
,
oss_closeDevice
,
NULL
/* sendMetadataFunc */
NULL
,
/* sendMetadataFunc */
};
#else
/* HAVE OSS */
AudioOutputPlugin
ossPlugin
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
/* sendMetadataFunc */
};
DISABLED_AUDIO_OUTPUT_PLUGIN
(
ossPlugin
)
#endif
/* HAVE_OSS */
src/audioOutputs/audioOutput_osx.c
View file @
ba9a2c34
...
...
@@ -351,24 +351,13 @@ AudioOutputPlugin osxPlugin =
osx_play
,
osx_dropBufferedAudio
,
osx_closeDevice
,
NULL
/* sendMetadataFunc */
NULL
,
/* sendMetadataFunc */
};
#else
#include <stdio.h>
AudioOutputPlugin
osxPlugin
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
};
DISABLED_AUDIO_OUTPUT_PLUGIN
(
osxPlugin
)
#endif
src/audioOutputs/audioOutput_pulse.c
View file @
ba9a2c34
...
...
@@ -196,16 +196,6 @@ AudioOutputPlugin pulsePlugin = {
#else
/* HAVE_PULSE */
AudioOutputPlugin
pulsePlugin
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
};
DISABLED_AUDIO_OUTPUT_PLUGIN
(
pulsePlugin
)
#endif
/* HAVE_PULSE */
src/audioOutputs/audioOutput_shout.c
View file @
ba9a2c34
...
...
@@ -604,22 +604,11 @@ AudioOutputPlugin shoutPlugin =
myShout_play
,
myShout_dropBufferedAudio
,
myShout_closeDevice
,
myShout_setTag
myShout_setTag
,
};
#else
AudioOutputPlugin
shoutPlugin
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
};
DISABLED_AUDIO_OUTPUT_PLUGIN
(
shoutPlugin
)
#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