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
This commit is contained in:
Qball Cow
2005-08-23 12:01:37 +00:00
parent 1b65ae02d4
commit 2aba0437a6
4 changed files with 143 additions and 0 deletions
+7
View File
@@ -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();