coldfusion244 Posted December 11, 2004 Posted December 11, 2004 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 :) Quote -Sean
Leaders Iceplug Posted December 11, 2004 Leaders Posted December 11, 2004 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. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
ThePentiumGuy Posted December 11, 2004 Posted December 11, 2004 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. Quote 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
coldfusion244 Posted December 11, 2004 Author Posted December 11, 2004 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! Quote -Sean
ThePentiumGuy Posted December 12, 2004 Posted December 12, 2004 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 ;). Quote 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
coldfusion244 Posted December 13, 2004 Author Posted December 13, 2004 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 ;) Quote -Sean
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.