Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 29 Aug 2012
Offline Last Active Oct 20 2012 07:53 AM

Posts I've Made

In Topic: What do you use for Audio in DirectX applications?

14 October 2012 - 04:25 AM

I answered a same question from stack overflow. just for your reference

The basic rule is, if you develop XAudio2 program on Win 8, use the Windows SDK, otherwise, use DirectX SDK.
If you are working on Win7, make sure
  • the head file XAudio2.h you are using comes from the DirectX SDK, that's something like C:\Program Files\Microsoft DirectX SDK (June 2010)\Include\XAudio2.h, not come from the Win8 SDK, something like C:\Program Files\Windows Kits\8.0\Include\um\XAudio2.h(in case you installed the Win8 SDK)
  • Call CoInitializeEx(NULL, COINIT_MULTITHREADED); before calling XAudio2Create, since the old version(before 2.8) of XAaudio2 was created by COM, so it does not need a .lib file, and there is no .lib file for XAudio2 before Win8.
This page below contains a detail introduction of the version of XAudio2, you can take a look.
XAudio2 Versions

In Topic: Tips and Tricks Migrating old DX8 to DX9 Projects?

13 September 2012 - 06:53 AM

I have done a similar task before, if you don't involve the shaders and effects, it's just some API replaces, lib path changes i think. are you project open sources?

In Topic: Smooth player movements?

29 August 2012 - 08:40 PM

yes you can animate a sprite and interpolate each frame as an animation, and move using delta time.

this link is for c++ but you can get the idea http://www.programme....com/2/time-fps


currentpos += dir*deltatime;

This is a good idea, time delta is widely used in geometry transforms like rotation and translation.