Play Wave Properties

I'm trying to change the Play Wave property 'LoopEvent' to 'Yes' but I get the error "Object reference not set to an instance of an object."

I'm not sure what I'm doing wrong. I have a cue and track setup, with a Play Wave event, and it contains a sound. What am I missing?

All I want to do is setup a sound which just continuously loops.

Thanks.

[369 byte] By [xgalaxy] at [2008-2-1]
# 1

There is nothing obvious (from what you state) that you are doing wrong.

What version of XACT are you using?

You should see three options in the LoopEvent property of the PlayWave Event: "No", "Finite", "Infinite". You may have uncovered a bug.

Try these steps, and see if they work:

1. Create a WaveBank

2. Create a SoundBank

3. Add a wave to the WaveBank

4. Drag the wave to the Cue window in the SoundBank

5. Select the PlayWave Event on the sound.

6. Try setting the LoopEvent property.

If this works fine, yet your original PlayWave Event still demonstrates the problem, we will probably want to investigate this further.

RobertHeitkamp-Microsoft at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 2

I got the same result ('object reference not set to an instance of an object') a few months ago when I tried to use XACT. I've just tried again following the advice in your posting and get the same result. It also occurs on volume and pitch parameter settings.

Also, can you tell me why I would need need to use exact? I find DMProducer does all it can and more.

hedswell at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 3

Hi guys,
Hm, I've never seen this - can you tell me the exact steps you're performing? That is, how are you setting the value? Clicking into the field, drag-selecting the text, trying to type over it, etc.? And how are you accepting the change that causes this dialog to appear? (Clicking away, hitting return, etc.) Also, have you tried this with the newest (August 2006) DirectX SDK? I'm wondering if there's some dependency here that the test team isn't covering (e.g. something else that might need to be installed for XACT to function properly).

As to why to use XACT, it and other competitive audio authoring middleware tools are focused on game-use scenarios. XACT handles things like wave bundling, streaming, seeking, and abstracting how sounds are made away from the programmer, keeping as much control as possible in the hands of the sound designer or composer. DirectMusic Producer did some really cool things, but it wasn't particularly game-optimized, and tended to be more focused on MIDI instrument triggering than actual wave playback. Additionally, the tool (and the underlying DirectMusic engine) is no longer undergoing engineering efforts. Plus XACT is cross-platform, with the ability to deploy the same content to both Xbox 360 and Windows, as well as being the audio tool and engine for the XNA Framework. Hope this helps!

-Scott

ScottSelfon-MSFT at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 4
Hi Scott and Robert,

I'm also experiencing the very same issue that the other guys mentionned.

Some background :
- Visual C# 2000 Express Edition
- XNA Framework beta
- DX SDK August 2006

On a pretty fresh WinXP SP2 Installed with all the updates.

I've tried the exact steps that Robert mentionned, after clicking the "Play Wave" event, here's what I get :

http://www.cwizou.net/xact1.jpg

So far, so good. Then I try to click (once) the "No" right to LoopEvent :

http://www.cwizou.net/xact2.jpg

Notice how the "+" disapear ? Anyway. Now I click the little down arrow thingy that appeared on the right of the "No" field.

http://www.cwizou.net/xact3.jpg

And there we go. I had the Auditioning tool running too (should that matter). All the other fields in the propriety box works fine, though (even PlayRelease in the same sub category).

Some things I tried :
- put my wavs in a spaceless path (not "My Documents" for example)
- a .wav exported with Audacity, and my all time favorite tada.wav from Windows/Media/

So let me know if I can help you in any way to reproduce the bug.

Guillaume

C_Wiz at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 5
Same problem here, looks like a vb.net error i guess
jldevries at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 6

I'm having the same problem. Anyone know of a workaround?

Thanks.

edz at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 7
Hello
niameo at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...