CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 1999
    Posts
    67

    Recording & playing Wave-files in C#

    Hi everybody,


    Does anyone know how to record from a microphone to a wavefile(any sound format will do)?


    And then how to play it?

    All help will be really appretiated.

    Thanks

    /Anders

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    u need to use C++ function using dllimport .
    there exists function for playing wav files.
    i think u could try DirectX also.

    Paresh
    - Software Architect

  3. #3
    Join Date
    Sep 1999
    Posts
    67
    Thanks for your answer, that is what I finally found out myself too.

    As I felt that directx would be kind of overkill for my simple applicationen I'm doing a dll import which seems to work pretty good.

    /Anders

  4. #4
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    if u find good link regarding that plz keep posted.

    thanks
    Paresh
    - Software Architect

  5. #5
    Join Date
    Sep 1999
    Posts
    67
    http://www.csharphelp.com/archives/archive264.html

    On this page there is a soundclass included which handles all the dll imports and dll calls for you. Helped me alot. Also gives u some ideas how to handle mp3-files.

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

Featured