Module: wine
Branch: master
Commit: 15c4c02eeba45d35c4c00dd5a2f8c16a2fe952e2
URL: https://gitlab.winehq.org/wine/wine/-/commit/15c4c02eeba45d35c4c00dd5a2f8c1…
Author: Rémi Bernon <rbernon(a)codeweavers.com>
Date: Tue Oct 10 22:59:32 2023 +0200
dmusic: Split wave entry points to dmusic_wave.h.
---
dlls/dmusic/dmusic_private.h | 6 +-----
dlls/dmusic/dmusic_wave.h | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/dlls/dmusic/dmusic_private.h b/dlls/dmusic/dmusic_private.h
index 2317ffa57c6..0bb3d5aaf83 100644
--- a/dlls/dmusic/dmusic_private.h
+++ b/dlls/dmusic/dmusic_private.h
@@ -42,6 +42,7 @@
#include "dmksctrl.h"
#include "dmobject.h"
+#include "dmusic_wave.h"
/*****************************************************************************
* Interfaces
@@ -91,7 +92,6 @@ extern HRESULT DMUSIC_CreateReferenceClockImpl (LPCGUID lpcGUID, LPVOID* ppobj,
extern HRESULT download_create(DWORD size, IDirectMusicDownload **ret_iface);
-struct soundfont;
extern HRESULT instrument_create_from_soundfont(struct soundfont *soundfont, UINT index,
struct collection *collection, DMUS_OBJECTDESC *desc, IDirectMusicInstrument **ret_iface);
extern HRESULT instrument_create_from_chunk(IStream *stream, struct chunk_entry *parent,
@@ -100,10 +100,6 @@ extern HRESULT instrument_download_to_port(IDirectMusicInstrument *iface, IDirec
IDirectMusicDownloadedInstrument **downloaded);
extern HRESULT instrument_unload_from_port(IDirectMusicDownloadedInstrument *iface, IDirectMusicPortDownload *port);
-extern HRESULT wave_create_from_soundfont(struct soundfont *soundfont, UINT index, IUnknown **out);
-extern HRESULT wave_create_from_chunk(IStream *stream, struct chunk_entry *parent, IUnknown **out);
-extern HRESULT wave_download_to_port(IUnknown *iface, IDirectMusicPortDownload *port, DWORD *id);
-
/*****************************************************************************
* IDirectMusic8Impl implementation structure
*/
diff --git a/dlls/dmusic/dmusic_wave.h b/dlls/dmusic/dmusic_wave.h
new file mode 100644
index 00000000000..0db0134ae17
--- /dev/null
+++ b/dlls/dmusic/dmusic_wave.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2023 Rémi Bernon for CodeWeavers
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+#include <stddef.h>
+
+#define COBJMACROS
+#include "windef.h"
+#include "winbase.h"
+
+#include "objbase.h"
+#include "dmusici.h"
+
+struct soundfont;
+struct chunk_entry;
+
+extern HRESULT wave_create_from_soundfont(struct soundfont *soundfont, UINT index, IUnknown **out);
+extern HRESULT wave_create_from_chunk(IStream *stream, struct chunk_entry *parent, IUnknown **out);
+extern HRESULT wave_download_to_port(IUnknown *iface, IDirectMusicPortDownload *port, DWORD *id);