Results 1 to 4 of 4

Thread: Play Sounds/Media in C#

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2003
    Location
    CANADA
    Posts
    63

    Play Sounds/Media in C#

    How to play ssound (or media)...

    1. by using Windows Media control in C#?
    2. WITHOUT using control

    Help will be great appreciated

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    2) Multimedia support was left out in the .Net framework. Apparently MS wants users to rely on DirectX 9 for multimedia, so you have to use DirectShow or DirectAudio.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2003
    Location
    CANADA
    Posts
    63
    er ... ok...? but how :S

    and there are some other questions relating to this issue...

    I. If it's possible (well i think it is) to control a) system volume b) Windows media player volume with C#

    II. How to shut down Windows Media Player with C#? (And/or maybe shut down some other programs with C#, too)

    Thank you so much again for the help

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Download the Managed DirectX SDK from Microsoft. Quite a large download, be warned.

    Then see the examples on how to use DirectShow to play a simple sound file.

    You can control system volume with DirectSound or the API, and I suppose you can control media player volume (if there's a difference) via the media player control.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width