Commit Graph

76 Commits

Author SHA1 Message Date
Michael Stefaniuc 5815ba4548 dmusic: Forward GetFormat() to the corresponding synth & sink methods.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-22 18:20:22 +01:00
Michael Stefaniuc 50811b5680 dmusic: Don't trace both the This and iface pointers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 22:44:49 +01:00
Michael Stefaniuc 8729840f94 dmusic: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 22:44:49 +01:00
Michael Stefaniuc 57a7d8b54c dmusic: Forward the synth port GetCaps to the synth method.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:55 +01:00
Michael Stefaniuc 340e1feef0 dmusic: Implement the E_NOTIMPL methods of the synth port.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:55 +01:00
Michael Stefaniuc 83064d1500 dmsynth: Implement the sink Init method.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-25 09:28:29 +01:00
Michael Stefaniuc 98ecff2760 dmusic: The synth port needs to get the latency clock from the synth.
And not reimplement it.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-21 18:47:10 +01:00
Michael Stefaniuc ccb216e477 dmusic: Send the master clock to the synth and not a latency clock.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-21 18:47:02 +01:00
Michael Stefaniuc 6fe37b4656 dmusic: Remove SynthPortImpl from the method and vtbl names.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-20 21:55:28 +01:00
Michael Stefaniuc a708c25b84 dmusic: Get rid of the SynthPortImpl typedef.
and rename the iface to obj helpers.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-20 21:55:24 +01:00
Michael Stefaniuc 98e6e2429f dmsynth: Pass the master clock on to the sink.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-20 21:55:21 +01:00
Michael Stefaniuc 7217973cb9 dmusic: Call SetSynkSink() first to initialize the Synth.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-20 21:55:17 +01:00
Michael Stefaniuc 7e69bdafea dmusic: Use the debug functions provided by dmobject.[ch].
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-13 09:52:36 +01:00
Francois Gouget 737440d24b dmusic: Make midi_port_create() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 10:28:28 +02:00
Michael Stefaniuc dcb438ebf8 dmusic: Fake success in two stub midi port methods.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 10:28:05 +02:00
Michael Stefaniuc 6ec0bfe164 dmusic: Add a stub IDirectMusicThru to the midi ports.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-20 09:09:03 +02:00
Michael Stefaniuc fcedc2b920 dmusic: Support midi in ports too.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-20 09:08:59 +02:00
Michael Stefaniuc 25dcca4b30 dmusic: Implement IDirectMusicPort_GetLatencyClock() for the midi port.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-20 09:08:55 +02:00
Michael Stefaniuc 8c48fba6a2 dmusic: Add a stub midi out port.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-20 09:08:49 +02:00
Zebediah Figura 264267fc2f dmusic: Call interface methods properly.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 10:36:01 +02:00
Michael Stefaniuc 62bf20783c dmusic: Remove the port from the ports list on the port destruction.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-12 18:01:49 +02:00
Józef Kucia 829ef41481 dmusic: Fix compilation on systems that don't support nameless structs or unions.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-11 09:30:22 -05:00
Michael Stefaniuc 43b3f844ba dmusic: Add dsound handling to the synth port Activate() method.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 09:16:13 -05:00
Michael Stefaniuc f968edb988 dmusic: Partially implement the synth IDirectMusicPort::SetDirectSound().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 09:16:10 -05:00
Michael Stefaniuc e8873b75af dmusic: Pass only the needed stuff to the DMPort create functions.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 09:16:06 -05:00
Michael Stefaniuc 883fe110ea dmusic: Support the IKsControl interface for the synth port.
Based on a patch by Michael Müller.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-05 11:43:21 +02:00
Michael Stefaniuc 845bf2ff59 dmusic: Move the SynthPortImpl struct to where it is used.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-05 11:43:20 +02:00
Michael Stefaniuc ca87c49390 dmusic: Simplify the IDirectMusicPort_QueryInterface implementation.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-05 11:43:17 +02:00
Michael Stefaniuc 253bffafba dmusic: Use debugstr_guid to trace some GUIDs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 20:33:18 +09:00
Michael Stefaniuc 3d77974f76 dmusic: Remove duplicated interface ID checks (PVS-Studio). 2014-10-29 20:31:06 +09:00
Michael Stefaniuc 1a7c0a6a70 dmusic: Lock/unlock the module only on creation/destruction of the object. 2014-06-11 16:13:02 +02:00
Andrey Gusev add85f4687 Assorted typos fixes. 2014-02-12 19:15:32 +01:00
André Hentschel b75f5c728d dmusic: Remove superfluous cast. 2013-07-02 11:10:05 +02:00
Francois Gouget 2fca1765b6 dmusic: Make DMUSIC_CreateDirectMusicDownloadedInstrumentImpl() static. 2013-04-18 19:12:14 +02:00
Andrew Talbot 00f85d7fc3 dmusic: Avoid signed-unsigned integer comparisons. 2013-01-16 12:21:53 +01:00
Christian Costa c6694e6dec dmusic: Implement SynthPortImpl_IDirectMusicPort_DownloadInstrument. 2012-12-24 14:36:21 +01:00
Christian Costa 494fbc69ca dmusic: Move IDirectMusicDownloadedInstrument to port.c since it is port dependant and perform COM cleanup. 2012-12-24 14:36:14 +01:00
Christian Costa 699fa23bd2 dmusic: Rename params in SynthPortImpl_IDirectMusicPort_QueryInterface. 2012-09-21 17:06:03 +02:00
Christian Costa 4262ecf910 dmusic: Rename params of SynthPortImpl_IDirectMusicPort_DownloadInstrument. 2012-09-20 19:22:36 +02:00
Christian Costa 57e6d416d6 dmusic: Add comments to Synth port vtables. 2012-09-20 19:22:32 +02:00
Christian Costa b8aadbfbd9 dmusic: Implement SynthPortImpl_IDirectMusicPort_PlayBuffer. 2012-09-20 19:22:28 +02:00
Christian Costa b177ceff1e dmusic: Setup and free all DirectMusicSynth objects when creating and releasing Synth port. 2012-09-20 19:22:21 +02:00
Christian Costa 1481d11f66 dmusic: Rename params in DMUSIC_CreateSynthPortImpl. 2012-09-19 13:05:29 +02:00
Christian Costa 7844c1ca25 dmusic: Rename IDirectMusicPortImpl object to SynthPortImpl. 2012-09-19 13:05:23 +02:00
Christian Costa 51eb9331cf dmusic: Rename CreateSynthPortImpl to CreateSynthPortImpl and create stubs for CreateMidi{In|Out}PortImpl.
Init constructors in system ports list accordingly.
2012-09-19 13:05:15 +02:00
Christian Costa d46f8e316a dmusic: Display new ref in AddRef and Release methods. 2012-09-18 14:47:00 +02:00
Christian Costa 66a817f067 dmusic: Create the list of available system ports at the beginning and use it to enumerate ports. 2012-09-17 12:07:41 +02:00
Christian Costa decada5f73 dmusic: COM cleanup of DirectMusicPort object. 2012-05-18 18:12:47 +02:00
Alexandre Julliard 87e75a0349 dmusic: Internal functions don't need to be WINAPI. 2012-04-24 11:37:20 +02:00
Christian Costa 4829fcd9b2 dmusic: Don't use method implementation directly. Pass through vtable with related macro instead. 2012-03-30 17:33:45 +02:00