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
37c92653
Commit
37c92653
authored
May 08, 2006
by
Qball Cow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit Jat's patch for bug 1281
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4136
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
b016b3bc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
12 deletions
+7
-12
audio.c
src/audio.c
+2
-11
audio.h
src/audio.h
+2
-0
main.c
src/main.c
+1
-0
playlist.c
src/playlist.c
+1
-1
playlist.h
src/playlist.h
+1
-0
No files found.
src/audio.c
View file @
37c92653
...
...
@@ -24,6 +24,7 @@
#include "command.h"
#include "playerData.h"
#include "utils.h"
#include "playlist.h"
#include <stdlib.h>
#include <string.h>
...
...
@@ -37,7 +38,6 @@
#define AUDIO_DEVICE_STATE "audio_device_state:"
#define AUDIO_DEVICE_STATE_LEN 19
/* strlen(AUDIO_DEVICE_STATE) */
#define AUDIO_BUFFER_SIZE 2*MAXPATHLEN
static
void
saveAudioDevicesState
();
static
AudioFormat
audio_format
;
...
...
@@ -232,7 +232,6 @@ void finishAudioConfig() {
void
finishAudioDriver
()
{
int
i
;
saveAudioDevicesState
();
for
(
i
=
0
;
i
<
audioOutputArraySize
;
i
++
)
{
finishAudioOutput
(
audioOutputArray
[
i
]);
}
...
...
@@ -427,15 +426,7 @@ void printAudioDevices(FILE * fp) {
}
}
static
char
*
getStateFile
()
{
ConfigParam
*
param
=
parseConfigFilePath
(
CONF_STATE_FILE
,
0
);
if
(
!
param
)
return
NULL
;
return
param
->
value
;
}
static
void
saveAudioDevicesState
()
{
void
saveAudioDevicesState
()
{
char
*
stateFile
;
FILE
*
fp
;
int
i
;
...
...
src/audio.h
View file @
37c92653
...
...
@@ -77,4 +77,6 @@ void printAudioDevices(FILE * fp);
void
readAudioDevicesState
();
void
saveAudioDevicesState
();
#endif
src/main.c
View file @
37c92653
...
...
@@ -595,6 +595,7 @@ int main(int argc, char * argv[]) {
}
savePlaylistState
();
saveAudioDevicesState
();
freeAllInterfaces
();
...
...
src/playlist.c
View file @
37c92653
...
...
@@ -92,7 +92,7 @@ static void swapOrder(int a, int b);
static
int
playPlaylistOrderNumber
(
FILE
*
fp
,
int
orderNum
);
static
void
randomizeOrder
(
int
start
,
int
end
);
static
char
*
getStateFile
()
{
char
*
getStateFile
()
{
ConfigParam
*
param
=
parseConfigFilePath
(
CONF_STATE_FILE
,
0
);
if
(
!
param
)
return
NULL
;
...
...
src/playlist.h
View file @
37c92653
...
...
@@ -118,5 +118,6 @@ int playlistChangesPosId(FILE * fp, mpd_uint32 version);
int
PlaylistInfo
(
FILE
*
fp
,
char
*
utf8file
,
int
detail
);
char
*
getStateFile
();
#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