diff options
author | Qball Cow <qball@qballcow.nl> | 2005-08-23 12:01:37 +0000 |
---|---|---|
committer | Qball Cow <qball@qballcow.nl> | 2005-08-23 12:01:37 +0000 |
commit | 2aba0437a6ab9097ea61f658337fcf470fca73af (patch) | |
tree | 82d0d31a532dc02ac9bf250eb9dd596616e3d72a /src/main.c | |
parent | 1b65ae02d4303050bc33754f4ee467010b416a4d (diff) | |
download | mpd-2aba0437a6ab9097ea61f658337fcf470fca73af.tar.gz mpd-2aba0437a6ab9097ea61f658337fcf470fca73af.tar.xz mpd-2aba0437a6ab9097ea61f658337fcf470fca73af.zip |
Saving state of output-device in state-file. (This is a temporary solution, rewrite of state-file is planned for 0.13)
git-svn-id: https://svn.musicpd.org/mpd/trunk@3449 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index cda6d1077..67c76a981 100644 --- a/src/main.c +++ b/src/main.c @@ -491,6 +491,9 @@ int main(int argc, char * argv[]) { initSigHandlers(); readPlaylistState(); + /* qball crappy code */ + readAudioDevicesState(); + while(COMMAND_RETURN_KILL!=doIOForInterfaces()) { if(COMMAND_RETURN_KILL==handlePendingSignals()) break; syncPlayerAndPlaylist(); @@ -499,6 +502,10 @@ int main(int argc, char * argv[]) { } savePlaylistState(); + /* qball crappy code */ + saveAudioDevicesState(); + + playerKill(); freeAllInterfaces(); |