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
6bc445d0
Commit
6bc445d0
authored
Apr 12, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
volatile fun-ness
git-svn-id:
https://svn.musicpd.org/mpd/trunk@705
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
57742785
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
33 deletions
+33
-33
audio.h
src/audio.h
+3
-3
decode.c
src/decode.c
+1
-1
directory.c
src/directory.c
+3
-3
player.c
src/player.c
+2
-2
player.h
src/player.h
+24
-24
No files found.
src/audio.h
View file @
6bc445d0
...
...
@@ -28,9 +28,9 @@
#define AUDIO_AO_DRIVER_DEFAULT "default"
typedef
struct
_AudioFormat
{
mpd_sint8
volatile
channels
;
mpd_uint32
volatile
sampleRate
;
mpd_sint8
volatile
bits
;
volatile
mpd_sint8
channels
;
volatile
mpd_uint32
sampleRate
;
volatile
mpd_sint8
bits
;
}
AudioFormat
;
void
initAudioDriver
();
...
...
src/decode.c
View file @
6bc445d0
...
...
@@ -52,7 +52,7 @@
#include <unistd.h>
#include <string.h>
int
volatile
*
decode_pid
=
NULL
;
volatile
int
*
volatile
decode_pid
=
NULL
;
void
decodeSigHandler
(
int
sig
)
{
if
(
sig
==
SIGCHLD
)
{
...
...
src/directory.c
View file @
6bc445d0
...
...
@@ -72,11 +72,11 @@ Directory * mp3rootDirectory = NULL;
char
directorydb
[
MAXPATHLEN
+
1
];
int
directory_updatePid
=
0
;
volatile
int
directory_updatePid
=
0
;
int
directory_reReadDB
=
0
;
volatile
int
directory_reReadDB
=
0
;
mpd_uint16
directory_updateJobId
=
0
;
volatile
mpd_uint16
directory_updateJobId
=
0
;
DirectoryList
*
newDirectoryList
();
...
...
src/player.c
View file @
6bc445d0
...
...
@@ -45,8 +45,8 @@
#include <errno.h>
#include <fcntl.h>
int
player_pid
=
0
;
int
player_termSent
=
0
;
volatile
int
player_pid
=
0
;
volatile
int
player_termSent
=
0
;
void
resetPlayer
()
{
int
pid
;
...
...
src/player.h
View file @
6bc445d0
...
...
@@ -51,32 +51,32 @@
#define PLAYER_QUEUE_LOCKED 1
typedef
struct
_PlayerControl
{
mpd_sint8
volatile
decodeType
;
mpd_sint8
volatile
stop
;
mpd_sint8
volatile
play
;
mpd_sint8
volatile
pause
;
mpd_sint8
volatile
state
;
mpd_sint8
volatile
closeAudio
;
mpd_sint8
volatile
error
;
mpd_uint16
bitRate
;
mpd_sint8
bits
;
mpd_sint8
channels
;
mpd_uint32
sampleRate
;
float
beginTime
;
float
totalTime
;
float
elapsedTime
;
volatile
mpd_sint8
decodeType
;
volatile
mpd_sint8
stop
;
volatile
mpd_sint8
play
;
volatile
mpd_sint8
pause
;
volatile
mpd_sint8
state
;
volatile
mpd_sint8
closeAudio
;
volatile
mpd_sint8
error
;
volatile
mpd_uint16
bitRate
;
volatile
mpd_sint8
bits
;
volatile
mpd_sint8
channels
;
volatile
mpd_uint32
sampleRate
;
volatile
float
beginTime
;
volatile
float
totalTime
;
volatile
float
elapsedTime
;
char
file
[
MAXPATHLEN
+
1
];
char
erroredFile
[
MAXPATHLEN
+
1
];
mpd_sint8
volatile
queueState
;
mpd_sint8
volatile
queueLockState
;
mpd_sint8
volatile
lockQueue
;
mpd_sint8
volatile
unlockQueue
;
mpd_sint8
volatile
seek
;
double
volati
le
seekWhere
;
float
crossFade
;
mpd_uint16
softwareVolume
;
double
totalPlayTime
;
int
volatile
decode_pid
;
volatile
mpd_sint8
queueState
;
volatile
mpd_sint8
queueLockState
;
volatile
mpd_sint8
lockQueue
;
volatile
mpd_sint8
unlockQueue
;
volatile
mpd_sint8
seek
;
volatile
doub
le
seekWhere
;
volatile
float
crossFade
;
volatile
mpd_uint16
softwareVolume
;
volatile
double
totalPlayTime
;
volatile
int
decode_pid
;
}
PlayerControl
;
void
player_sigChldHandler
(
int
pid
,
int
status
);
...
...
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