From f5a923b9d16e4c63942a033d1bdb2ab150aae342 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 27 Jan 2014 08:20:25 +0100 Subject: OutputAll: convert to class, move instance to class Partition Another big chunk of code for multi-player support. --- src/StateFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/StateFile.cxx') 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) -- cgit v1.2.3