Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I am new to .NET, and I want to incorporate sound into my application. In VS6.0 I used the API SndPlaySound to play wave audio files. Is there a feature built into .NET to allow sounds? The second part of my question is can you hear sounds using SndPlaySound API or the .NET built in sound functions even if you're in the middle of playing a DirectX based game. Should I just use DirectSound?

 

Thank you guys :)

-Sean
  • Leaders
Posted

Sounds are only built in to .NET 2005, but you should be able to hear the sounds if you are using a DirectX-based game (unless the DirectX Sound drowns it out ;) ).

 

You can use [api]PlaySound[/api] to Play WAVE files. You'll just have to change the declaration's Longs to Integers. :)

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Posted
  Quote
Sounds are only built in to .NET 2005, but you should be able to hear the sounds if you are using a DirectX-based game (unless the DirectX Sound drowns it out ;) ).

WHAT? Can't they just release a damn framework upgrade for this (For 2003), it's not like we're all rich and we can afford buying .NET almost every year.

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Posted
  Quote
WHAT? Can't they just release a damn framework upgrade for this (For 2003), it's not like we're all rich and we can afford buying .NET almost every year.
Haha, trueness! Just think, in 2007 there will be ANOTHER one... most likely. A new OS is coming (longhorn) new Office, just think you get to buy 3 $100+ pieces of software from them every 3 years! woohooo!
-Sean
Posted
  Quote
Haha' date=' trueness! Just think, in 2007 there will be ANOTHER one... most likely. A new OS is coming (longhorn) new Office, just think you get to buy 3 $100+ pieces of software from them every 3 years! woohooo![/quote']But yet they still get their money becuase people buy them anyways.... :S Dammit. Competition is what they need. friggin monopoly........

 

Bah there's nothing we can do about it.... unless of course you want to start your own company which beats the living hell out of microsoft ;).

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Posted
  Quote
But yet they still get their money becuase people buy them anyways.... :S Dammit. Competition is what they need. friggin monopoly........

 

Bah there's nothing we can do about it.... unless of course you want to start your own company which beats the living hell out of microsoft ;).

 

 

I'll get right on that :p ;)

-Sean

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...