diff options
author | Max Kellermann <max@duempel.org> | 2014-01-27 08:20:25 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-28 09:20:53 +0100 |
commit | f5a923b9d16e4c63942a033d1bdb2ab150aae342 (patch) | |
tree | 6e3c39b305fd2a1da2a7b9c2b79a6737ca21a23b /src/StateFile.cxx | |
parent | 36bab6ef066c6898a791dd15054301f80757b3f6 (diff) |
OutputAll: convert to class, move instance to class Partition
Another big chunk of code for multi-player support.
Diffstat (limited to 'src/StateFile.cxx')
-rw-r--r-- | src/StateFile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx index b28e8c617..7c0e24439 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -75,7 +75,7 @@ StateFile::Write() } save_sw_volume_state(fp); - audio_output_state_save(fp); + audio_output_state_save(fp, partition.outputs); playlist_state_save(fp, partition.playlist, partition.pc); fclose(fp); @@ -99,8 +99,8 @@ StateFile::Read() const char *line; while ((line = file.ReadLine()) != NULL) { - success = read_sw_volume_state(line) || - audio_output_state_read(line) || + success = read_sw_volume_state(line, partition.outputs) || + audio_output_state_read(line, partition.outputs) || playlist_state_restore(line, file, partition.playlist, partition.pc); if (!success) |