The Blog of Zachary Snow

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About Me
  • Apps
  • Open Source Projects
  • Free Graphics Resources

Tag Archives: xaudio2

XAudio2: Stop Currently Playing Sound

Posted on July 2, 2011 by smack0007
Reply

Using SlimDX, if you want to stop a sound which is currently playing via XAudio2, use the following methods on the SourceVoice object:

sourceVoice.Stop();
sourceVoice.FlushSourceBuffers();
Posted in C#, SlimDX | Tagged slimdx, xaudio2 | Leave a reply

Recent Posts

  • GLDotNet Version 0.6.0
  • Introducing GLDotNet
  • HTTP Status Codes as Telephone Calls

Categories

  • .NET
    • C#
    • GLDotNet
    • OpenTK
    • SharpDX
    • SlimDX
    • Snowball
    • Visual Studio
    • WinForms
    • XNA
  • Code Snippets
  • cygwin
  • Design Patterns
    • Composition
    • Dependency Injection
    • IoC
  • git
  • GitHub
  • Javascript
  • Linux
    • Ubuntu
  • Mercurial
  • News
  • Open Source
  • OpenGL
  • php
  • Podcasts
  • Random
  • Uncategorized
  • Video Games
  • Windows 7
  • WinQuakeCon
  • Xbox Live Indie Games

Friends

  • Delphi sorcery
  • Soesti is online

Stack Overflow

Steam

Tags

.NET bitbucket c# codeplex Code Snippets ComponentGlue composition-over-inheritance cygwin dependency-injection design-patterns empty-interface extension-methods game-programming-patterns git git-gui github hex IoC javascript marker-interfaces mvc opengl Open Source opentk php podcasts Programming SameGameXna service-continer slimdx snowball split-container SpriteSheet typolight Vectors Video Games Visual C# Visual Studio win-forms win7 windows-7 WinForms xblcg XNA zend-framework
Proudly powered by WordPress