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
e7505381
Commit
e7505381
authored
Feb 10, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio: moved protocol code to output_print.c
parent
49ff2ace
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
78 additions
and
19 deletions
+78
-19
Makefile.am
src/Makefile.am
+2
-0
audio.c
src/audio.c
+0
-16
audio.h
src/audio.h
+0
-3
command.c
src/command.c
+1
-0
output_print.c
src/output_print.c
+43
-0
output_print.h
src/output_print.h
+32
-0
No files found.
src/Makefile.am
View file @
e7505381
...
...
@@ -42,6 +42,7 @@ mpd_headers = \
output_thread.h
\
output_control.h
\
output_state.h
\
output_print.h
\
output/shout_plugin.h
\
buffer2array.h
\
command.h
\
...
...
@@ -140,6 +141,7 @@ mpd_SOURCES = \
output_thread.c
\
output_control.c
\
output_state.c
\
output_print.c
\
output_init.c
\
output/null_plugin.c
\
buffer2array.c
\
...
...
src/audio.c
View file @
e7505381
...
...
@@ -22,7 +22,6 @@
#include "output_control.h"
#include "output_internal.h"
#include "path.h"
#include "client.h"
#include "idle.h"
#include "mixer_api.h"
...
...
@@ -381,21 +380,6 @@ int disableAudioDevice(unsigned int device)
return
0
;
}
void
printAudioDevices
(
struct
client
*
client
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
audioOutputArraySize
;
i
++
)
{
client_printf
(
client
,
"outputid: %i
\n
"
"outputname: %s
\n
"
"outputenabled: %i
\n
"
,
i
,
audioOutputArray
[
i
].
name
,
audioOutputArray
[
i
].
enabled
);
}
}
bool
mixer_control_setvol
(
unsigned
int
device
,
int
volume
,
int
rel
)
{
struct
audio_output
*
output
;
...
...
src/audio.h
View file @
e7505381
...
...
@@ -26,7 +26,6 @@
struct
audio_format
;
struct
tag
;
struct
client
;
struct
config_param
;
/**
...
...
@@ -80,8 +79,6 @@ int enableAudioDevice(unsigned int device);
int
disableAudioDevice
(
unsigned
int
device
);
void
printAudioDevices
(
struct
client
*
client
);
bool
mixer_control_setvol
(
unsigned
int
device
,
int
volume
,
int
rel
);
bool
mixer_control_getvol
(
unsigned
int
device
,
int
*
volume
);
...
...
src/command.c
View file @
e7505381
...
...
@@ -35,6 +35,7 @@
#include "stored_playlist.h"
#include "ack.h"
#include "audio.h"
#include "output_print.h"
#include "locate.h"
#include "dbUtils.h"
#include "tag.h"
...
...
src/output_print.c
0 → 100644
View file @
e7505381
/*
* Copyright (C) 2003-2009 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Protocol specific code for the audio output library.
*
*/
#include "output_print.h"
#include "output_internal.h"
#include "audio.h"
#include "client.h"
void
printAudioDevices
(
struct
client
*
client
)
{
unsigned
n
=
audio_output_count
();
for
(
unsigned
i
=
0
;
i
<
n
;
++
i
)
{
const
struct
audio_output
*
ao
=
audio_output_get
(
i
);
client_printf
(
client
,
"outputid: %i
\n
"
"outputname: %s
\n
"
"outputenabled: %i
\n
"
,
i
,
ao
->
name
,
ao
->
enabled
);
}
}
src/output_print.h
0 → 100644
View file @
e7505381
/*
* Copyright (C) 2003-2009 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Protocol specific code for the audio output library.
*
*/
#ifndef OUTPUT_PRINT_H
#define OUTPUT_PRINT_H
struct
client
;
void
printAudioDevices
(
struct
client
*
client
);
#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