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
b38157fc
Commit
b38157fc
authored
Jul 16, 2006
by
J. Alexander Treuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Committing qball's patch to list supported audio outputs in --version
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4357
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
5070f8bc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
4 deletions
+29
-4
audio.c
src/audio.c
+9
-4
audio.h
src/audio.h
+1
-0
audioOutput.c
src/audioOutput.c
+12
-0
audioOutput.h
src/audioOutput.h
+1
-0
main.c
src/main.c
+6
-0
No files found.
src/audio.c
View file @
b38157fc
...
@@ -79,11 +79,8 @@ extern AudioOutputPlugin pulsePlugin;
...
@@ -79,11 +79,8 @@ extern AudioOutputPlugin pulsePlugin;
extern
AudioOutputPlugin
mvpPlugin
;
extern
AudioOutputPlugin
mvpPlugin
;
extern
AudioOutputPlugin
shoutPlugin
;
extern
AudioOutputPlugin
shoutPlugin
;
/* make sure initPlayerData is called before this function!! */
void
initAudioDriver
()
{
ConfigParam
*
param
=
NULL
;
int
i
;
void
loadAudioDrivers
()
{
initAudioOutputPlugins
();
initAudioOutputPlugins
();
loadAudioOutputPlugin
(
&
alsaPlugin
);
loadAudioOutputPlugin
(
&
alsaPlugin
);
loadAudioOutputPlugin
(
&
aoPlugin
);
loadAudioOutputPlugin
(
&
aoPlugin
);
...
@@ -92,6 +89,14 @@ void initAudioDriver() {
...
@@ -92,6 +89,14 @@ void initAudioDriver() {
loadAudioOutputPlugin
(
&
pulsePlugin
);
loadAudioOutputPlugin
(
&
pulsePlugin
);
loadAudioOutputPlugin
(
&
mvpPlugin
);
loadAudioOutputPlugin
(
&
mvpPlugin
);
loadAudioOutputPlugin
(
&
shoutPlugin
);
loadAudioOutputPlugin
(
&
shoutPlugin
);
}
/* make sure initPlayerData is called before this function!! */
void
initAudioDriver
()
{
ConfigParam
*
param
=
NULL
;
int
i
;
loadAudioDrivers
();
pdAudioDevicesEnabled
=
(
getPlayerData
())
->
audioDeviceEnabled
;
pdAudioDevicesEnabled
=
(
getPlayerData
())
->
audioDeviceEnabled
;
...
...
src/audio.h
View file @
b38157fc
...
@@ -79,4 +79,5 @@ void readAudioDevicesState();
...
@@ -79,4 +79,5 @@ void readAudioDevicesState();
void
saveAudioDevicesState
();
void
saveAudioDevicesState
();
void
loadAudioDrivers
();
#endif
#endif
src/audioOutput.c
View file @
b38157fc
...
@@ -247,3 +247,15 @@ void sendMetadataToAudioOutput(AudioOutput * audioOutput, MpdTag * tag) {
...
@@ -247,3 +247,15 @@ void sendMetadataToAudioOutput(AudioOutput * audioOutput, MpdTag * tag) {
if
(
!
audioOutput
->
sendMetdataFunc
)
return
;
if
(
!
audioOutput
->
sendMetdataFunc
)
return
;
audioOutput
->
sendMetdataFunc
(
audioOutput
,
tag
);
audioOutput
->
sendMetdataFunc
(
audioOutput
,
tag
);
}
}
void
printAllOutputPluginTypes
(
FILE
*
fp
)
{
ListNode
*
node
=
audioOutputPluginList
->
firstNode
;
AudioOutputPlugin
*
plugin
;
while
(
node
)
{
plugin
=
(
AudioOutputPlugin
*
)
node
->
data
;
myfprintf
(
fp
,
"%s "
,
plugin
->
name
);
node
=
node
->
nextNode
;
}
myfprintf
(
fp
,
"
\n
"
);
}
src/audioOutput.h
View file @
b38157fc
...
@@ -110,4 +110,5 @@ void finishAudioOutput(AudioOutput * audioOutput);
...
@@ -110,4 +110,5 @@ void finishAudioOutput(AudioOutput * audioOutput);
int
keepAudioOutputAlive
(
AudioOutput
*
audioOutput
,
int
ms
);
int
keepAudioOutputAlive
(
AudioOutput
*
audioOutput
,
int
ms
);
void
sendMetadataToAudioOutput
(
AudioOutput
*
audioOutput
,
MpdTag
*
tag
);
void
sendMetadataToAudioOutput
(
AudioOutput
*
audioOutput
,
MpdTag
*
tag
);
void
printAllOutputPluginTypes
(
FILE
*
fp
);
#endif
#endif
src/main.c
View file @
b38157fc
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "permission.h"
#include "permission.h"
#include "replayGain.h"
#include "replayGain.h"
#include "inputPlugin.h"
#include "inputPlugin.h"
#include "audioOutput.h"
#include "inputStream.h"
#include "inputStream.h"
#include "tag.h"
#include "tag.h"
#include "tagTracker.h"
#include "tagTracker.h"
...
@@ -135,6 +136,11 @@ static void version(void) {
...
@@ -135,6 +136,11 @@ static void version(void) {
initInputPlugins
();
initInputPlugins
();
printAllInputPluginSuffixes
(
stdout
);
printAllInputPluginSuffixes
(
stdout
);
LOG
(
"
\n
"
);
LOG
(
"Supported outputs:
\n
"
);
loadAudioDrivers
();
printAllOutputPluginTypes
(
stdout
);
}
}
static
void
parseOptions
(
int
argc
,
char
**
argv
,
Options
*
options
)
{
static
void
parseOptions
(
int
argc
,
char
**
argv
,
Options
*
options
)
{
...
...
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