mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:08:30 +00:00
dmsynth: Remove superfluous casts to self.
This commit is contained in:
parent
b3382916c6
commit
ad1ba07880
|
@ -320,7 +320,7 @@ static HRESULT synth_sink_activate(struct synth_sink *This)
|
|||
else
|
||||
{
|
||||
synth_sink_get_format(This, &format);
|
||||
desc.lpwfxFormat = (WAVEFORMATEX *)&format;
|
||||
desc.lpwfxFormat = &format;
|
||||
desc.dwBufferBytes = format.nAvgBytesPerSec;
|
||||
if (FAILED(hr = IDirectMusicSynthSink_GetDesiredBufferSize(iface, &desc.dwBufferBytes)))
|
||||
ERR("Failed to get desired buffer size, hr %#lx\n", hr);
|
||||
|
|
|
@ -1134,11 +1134,11 @@ static void test_IDirectMusicSynth(void)
|
|||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
hr = IReferenceClock_GetTime(latency_clock, &time);
|
||||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
hr = IDirectMusicBuffer_GetRawBufferPtr(buffer, (BYTE **)&raw);
|
||||
hr = IDirectMusicBuffer_GetRawBufferPtr(buffer, &raw);
|
||||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
hr = IDirectMusicBuffer_GetUsedBytes(buffer, &len);
|
||||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
hr = IDirectMusicSynth_PlayBuffer(synth, time, (BYTE *)raw, len);
|
||||
hr = IDirectMusicSynth_PlayBuffer(synth, time, raw, len);
|
||||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
IDirectMusicBuffer_Release(buffer);
|
||||
IReferenceClock_Release(latency_clock);
|
||||
|
|
Loading…
Reference in a new issue