From 44621f73269d3d269e365dee9cc5a4b5ba70d404 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 31 Jul 2013 00:57:52 +0200 Subject: output/winmm: adapt to PcmBuffer API changes --- src/output/WinmmOutputPlugin.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/output/WinmmOutputPlugin.cxx b/src/output/WinmmOutputPlugin.cxx index 34593b62f..2418731a0 100644 --- a/src/output/WinmmOutputPlugin.cxx +++ b/src/output/WinmmOutputPlugin.cxx @@ -20,7 +20,7 @@ #include "config.h" #include "WinmmOutputPlugin.hxx" #include "OutputAPI.hxx" -#include "pcm/pcm_buffer.h" +#include "pcm/PcmBuffer.hxx" #include "MixerList.hxx" #include @@ -30,7 +30,7 @@ #define G_LOG_DOMAIN "winmm_output" struct WinmmBuffer { - struct pcm_buffer buffer; + PcmBuffer buffer; WAVEHDR hdr; }; @@ -190,7 +190,6 @@ winmm_output_open(struct audio_output *ao, struct audio_format *audio_format, } for (unsigned i = 0; i < G_N_ELEMENTS(wo->buffers); ++i) { - pcm_buffer_init(&wo->buffers[i].buffer); memset(&wo->buffers[i].hdr, 0, sizeof(wo->buffers[i].hdr)); } @@ -205,7 +204,7 @@ winmm_output_close(struct audio_output *ao) WinmmOutput *wo = (WinmmOutput *)ao; for (unsigned i = 0; i < G_N_ELEMENTS(wo->buffers); ++i) - pcm_buffer_deinit(&wo->buffers[i].buffer); + wo->buffers[i].buffer.Clear(); waveOutClose(wo->handle); @@ -220,7 +219,7 @@ winmm_set_buffer(WinmmOutput *wo, WinmmBuffer *buffer, const void *data, size_t size, GError **error_r) { - void *dest = pcm_buffer_get(&buffer->buffer, size); + void *dest = buffer->buffer.Get(size); assert(dest != nullptr); memcpy(dest, data, size); -- cgit v1.2.3