Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

Is there just a simple function like sndPlaySound in the .NET Framework that I am missing? I don't want to use DirectSound just to play a sound in a Windows Form application.

 

If there isn't one, then I guess I'll just use sndPlaySound still. Seems a bit odd that there wouldn't be a .NET equivalent though.

 

Thanks

mov ax, 13h

int 10h

  • *Experts*
Posted
There isn't one in .NET due to the platform-specific constraints, so you need API. However, don't use sndPlaySound. Use [api]PlaySound[/api] instead. sndPlaySound is deprecated.

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...