Commit Graph

46 Commits

Author SHA1 Message Date
Alistair Leslie-Hughes fa66c1b301 dmime: IDirectMusicAudioPath Release primary buffer.
In IDirectMusicAudioPath CreateStandardAudioPath we create a
AudioPath object and assign it a primary buffer object which
needs to be released.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36272
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-18 21:13:16 +01:00
Alistair Leslie-Hughes ceabad19b8 dmime: Improved tracing of the DMUS_OBJECTDESC structure.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-30 22:24:28 +02:00
Michael Stefaniuc 885bd810e2 dmime: Remove unused impl_from_ helpers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Zebediah Figura 54e27c17ef dmime: 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-03 20:46:01 +02:00
Michael Stefaniuc da4318b291 dmime: Use ParseDescriptor() instead of reimplementing it.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:35:29 +01:00
Michael Stefaniuc bdbd2e188c dmime: Reimplement ParseDescriptor for DMAudioPathConfig.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 20:31:55 +01:00
Alistair Leslie-Hughes f62a891385 dmime: Support more interfaces in IDirectMusicAudioPath.GetObjectInPath.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 17:15:42 +02:00
Michael Stefaniuc 2c66b4b235 dmime: Get rid of the extra pointer to a DMUS_OBJECTDESC. 2015-06-15 15:29:05 +09:00
Michael Stefaniuc 93e61eb4e8 dmime: Use the generic DMObject implementation for DMAudioPathConfig. 2015-06-15 15:29:05 +09:00
Marcus Meissner 59efc5ce64 dmime: Check return code of create_dmgraph (Coverity). 2015-05-06 18:14:29 +09:00
Nikolay Sivov 02ab73beb1 dmime: COM cleanup for IDirectMusicAudioPath. 2015-05-01 15:15:18 +09:00
Nikolay Sivov ef585842d6 dmime: Remove separate IUnknown vtable from IDirectMusicAudioPath impl. 2015-04-29 12:24:51 +09:00
Nikolay Sivov b3d1b1f239 dmime: Don't expose IDirectMusicAudioPath impl details. 2015-04-28 19:07:35 +09:00
Aric Stewart fcae01672f dmime: Do not try to query a NULL direct sound buffer. 2014-02-26 13:38:06 -06:00
Michael Stefaniuc edddda2374 include: There is no need to duplicate CLSID_DirectMusicAudioPathConfig as CLSID_DirectMusicAudioPath.
CLSID_DirectMusicAudioPath is private to Wine and produces the confusion
between the COM objects DirectMusicAudioPath and
DirectMusicAudioPathConfig. But those are totally different things.
2014-01-10 12:09:12 +01:00
Michael Stefaniuc 2343eeff91 dmime: None of the COM classes support COM aggregation. 2014-01-10 12:06:41 +01:00
Marcus Meissner 2a55b09bed directshow: Removed bad sizeof in copy/pasted code (Coverity). 2011-10-18 15:17:42 +02:00
Frédéric Delanoy f932abf326 dlls: Assorted spelling fixes. 2011-08-01 18:26:27 +02:00
Michael Stefaniuc 49177a0958 dmime: Remove superfluous pointer casts. 2009-01-13 15:26:23 +01:00
Michael Stefaniuc 9e296ead7e include: Use LONG instead of long in dmusici.h for Win64 compatibility. 2009-01-10 17:43:10 +01:00
Andrew Talbot 13afbc02b6 dmime: Assign to structs instead of using memcpy. 2008-02-25 13:27:14 +01:00
Andrew Talbot 301b867909 dmime: Remove unneeded casts. 2007-12-08 19:53:56 +01:00
Alexandre Julliard 7718d2bd7c dmusic: Fix license headers that mistakenly use GPL instead of LGPL.
Confirmed by the original author and the major contributors.
2007-05-30 12:54:07 +02:00
Dmitry Timoshkov 56e725e152 dmime: Make some data const and static. 2006-12-14 20:11:13 +01:00
Michael Stefaniuc 891e016653 dmime: Win64 printf format warning fixes. 2006-10-10 16:11:37 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mike McCormack 06e23dad02 - use interfaces rather than internal functions
- remove declaration of AddRef and QueryInterface functions from
  headers
2005-06-21 09:44:28 +00:00
Mike McCormack ff536fbe42 Make functions static. 2005-06-20 16:01:04 +00:00
Dmitry Timoshkov 247246ede7 Make more of the OLE interface vtables const. 2005-05-30 10:01:08 +00:00
Peter Berg Larsen 6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Peter Berg Larsen e732fc023d Janitorial: Get rid of strncpy/strncpyW. 2005-03-28 14:17:51 +00:00
James Hawkins 1727eb485e Properly implement DllCanUnloadNow ref counting. 2005-02-02 09:31:06 +00:00
Paul Vriens 3da8524bb4 - use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
2005-01-11 16:02:21 +00:00
Eric Pouech cf1d00bb08 Removed excessive statement (break after return or goto, not useful
break, not needed vars...)
2005-01-09 16:42:53 +00:00
Francois Gouget ee0344a4a2 Remove unneeded NULL casts. 2004-12-22 15:13:20 +00:00
Alexandre Julliard f714b39762 Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
macro.
2004-08-23 19:39:48 +00:00
Alexandre Julliard 48c4bb3c31 Get rid of the non-standard ICOM_VTABLE macro. 2004-08-12 23:00:51 +00:00
Raphael Junqueira dfbf36d3e8 - Better loading of IDirectMusicSegTriggerTrack (internal list of
subtracks)
- Better stubs for IDirectMusicTempoTrack::InitPlay and
  IDirectMusicTempoTrack::EndPlay (InitPlay should return a valid
  memory pointer so allocate it). Should be extended for all
  IDirectMusicTrack objects.
2004-05-19 04:32:43 +00:00
Raphael Junqueira ee51a0c014 - Many IDirectMusicSegment fixes (loading).
- AudioPath crash fix (don't use DSound APIs if buffer is null).
- Move generic functions to dmime_main.c for future reuse (from
  segment.c).
- IDirectMusicTempoTrack loading (many tempo case must be handled).
- IDirectMusicSegTriggerTrack loading implementation (now
  DMRF/DirectMusic References loading should be done).
2004-05-11 04:27:23 +00:00
Raphael Junqueira c77788b59f - Release DSBuffer on AudioPath destruction.
- Semi stub for AudioPath Activate.
- IDirectMusicPerformance8::CreateAudioPath stub.
- Most of the IDirectMusicSegment8_[Set,Get]* (using header).
- Load of Streamer IDirectMusicSegment8 header.
2004-05-10 19:56:17 +00:00
Raphael Junqueira 1afbcd71dd - fix DirectSound Creation by dmusic (fix recent Unreal2 regression)
using Robert Reif patch
- use of ForegroundWindow if hWnd is NULL (as specified on msdn docs)
- begin of Performance PMsg implementation (we should use a processing
  thread)
- better Segment loading
- some stubs for IsDirty (always FALSE)
2004-05-05 01:32:55 +00:00
Rok Mandeljc b26d65bba9 Added name resolving for CLSIDs, IIDs, GUIDs and return codes. 2004-02-25 01:30:03 +00:00
Rok Mandeljc 0382ea1d8a - updated resources to DX9
- completely rewritten headers (DX9 compat.; look much nicer now ;=)
- removed IDirectMusicSong and IDirectMusicMelodyFormulationTrack
  (which are removed from DX9; weren't implemented in DX8 anyway)
- combined/simplified IDirectMusicSomething / IDirectMusicObject /
  IPersistStream for objects that support loading
- implemented IDirectMusicObject on all such objects; via generic
  functions
- combined IDirectMusicTrack(8)/IPersistStream on all tracks
- fully implemented IDirectMusicContainer (at least 90% if there are
  no private interfaces)
- implemented IDirectMusicCollection (99% work & MS compliant
  behaviour; except for instruments)
- tried to implement IDirectMusicInstrument (unfortunately uses some
  dirty private interfaces... :(
- added dswave.dll; DirectMusic Wave
- some changes in style
- many, many more ;)
2004-01-20 00:21:40 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Rok Mandeljc df167d17c6 - implemented loader, loader's stream and loading of objects (now you
can use builtin dmloader and native other dm*.dlls)
- implemented proper creation of objects and retrieval of dmusic
  interfaces from them (object, stream, ...)
- implemented all "standard track types" and appropriate stream (for
  dmband, loading is almost complete)
- cleaned some obsolete stuff
- split debug channels
2003-08-22 23:53:27 +00:00
Rok Mandeljc 473c565781 Split the dmusic interfaces. 2003-07-21 22:10:14 +00:00