mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
waveformsink: Fix mingw warnings
https://bugzilla.gnome.org/show_bug.cgi?id=667719
This commit is contained in:
parent
654a04f90c
commit
e886ef8f5b
2 changed files with 15 additions and 4 deletions
|
@ -76,8 +76,8 @@ GstCaps *gst_waveform_sink_create_caps (gint rate, gint channels,
|
|||
gint bits_per_sample);
|
||||
WAVEHDR *bufferpool_get_buffer (GstWaveFormSink * wfsink, gpointer data,
|
||||
guint length);
|
||||
void CALLBACK waveOutProc (HWAVEOUT hwo, UINT uMsg, unsigned long dwInstance,
|
||||
DWORD dwParam1, DWORD dwParam2);
|
||||
void CALLBACK waveOutProc (HWAVEOUT hwo, UINT uMsg, DWORD_PTR dwInstance,
|
||||
DWORD_PTR dwParam1, DWORD_PTR dwParam2);
|
||||
|
||||
static GstStaticPadTemplate waveformsink_sink_factory =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
|
@ -374,7 +374,7 @@ gst_waveform_sink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
|
|||
|
||||
/* open the default audio device with the given caps */
|
||||
mmresult = waveOutOpen (&wfsink->hwaveout, WAVE_MAPPER,
|
||||
&wfx, (DWORD) waveOutProc, (DWORD) wfsink, CALLBACK_FUNCTION);
|
||||
&wfx, (DWORD_PTR) waveOutProc, (DWORD_PTR) wfsink, CALLBACK_FUNCTION);
|
||||
if (mmresult != MMSYSERR_NOERROR) {
|
||||
waveOutGetErrorText (mmresult, wfsink->error_string, ERROR_LENGTH - 1);
|
||||
GST_ELEMENT_ERROR (wfsink, RESOURCE, OPEN_WRITE,
|
||||
|
@ -569,7 +569,7 @@ gst_waveform_sink_create_caps (gint rate, gint channels, gint bits_per_sample)
|
|||
|
||||
void CALLBACK
|
||||
waveOutProc (HWAVEOUT hwo,
|
||||
UINT uMsg, unsigned long dwInstance, DWORD dwParam1, DWORD dwParam2)
|
||||
UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2)
|
||||
{
|
||||
GstWaveFormSink *wfsink = (GstWaveFormSink *) dwInstance;
|
||||
|
||||
|
|
|
@ -28,10 +28,21 @@
|
|||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#ifndef WAVE_FORMAT_96M08
|
||||
#define WAVE_FORMAT_96M08 0x00001000 /* 96 kHz, Mono, 8-bit */
|
||||
#endif
|
||||
|
||||
#ifndef WAVE_FORMAT_96S08
|
||||
#define WAVE_FORMAT_96S08 0x00002000 /* 96 kHz, Stereo, 8-bit */
|
||||
#endif
|
||||
|
||||
#ifndef WAVE_FORMAT_96M16
|
||||
#define WAVE_FORMAT_96M16 0x00004000 /* 96 kHz, Mono, 16-bit */
|
||||
#endif
|
||||
|
||||
#ifndef WAVE_FORMAT_96S16
|
||||
#define WAVE_FORMAT_96S16 0x00008000 /* 96 kHz, Stereo, 16-bit */
|
||||
#endif
|
||||
|
||||
#define ERROR_LENGTH MAXERRORLENGTH+50
|
||||
#define BUFFER_COUNT 20
|
||||
|
|
Loading…
Reference in a new issue