diff options
Diffstat (limited to 'src/output/OutputState.cxx')
-rw-r--r-- | src/output/OutputState.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/output/OutputState.cxx b/src/output/OutputState.cxx index 7f3a8da7b..0c1424404 100644 --- a/src/output/OutputState.cxx +++ b/src/output/OutputState.cxx @@ -28,6 +28,7 @@ #include "Internal.hxx" #include "Domain.hxx" #include "Log.hxx" +#include "fs/output/BufferedOutputStream.hxx" #include "util/StringUtil.hxx" #include <assert.h> @@ -38,13 +39,13 @@ unsigned audio_output_state_version; void -audio_output_state_save(FILE *fp, const MultipleOutputs &outputs) +audio_output_state_save(BufferedOutputStream &os, + const MultipleOutputs &outputs) { for (unsigned i = 0, n = outputs.Size(); i != n; ++i) { const AudioOutput &ao = outputs.Get(i); - fprintf(fp, AUDIO_DEVICE_STATE "%d:%s\n", - ao.enabled, ao.name); + os.Format(AUDIO_DEVICE_STATE "%d:%s\n", ao.enabled, ao.name); } } |