Results 1 to 7 of 7

Thread: Record From Sound Card

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Posts
    29

    Smile Record From Sound Card

    Hello
    I need a way of recording any sound that is played through the computer so say if the user was open up windows media player and play a song then he could click record on my application and it would capture whatever is being played. After that there would also need to be a save button so the can click save and the user can save the file as a .wav or .mp3 or whatever! Please help me.

    Michael

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Posts
    29

    Re: Record From Sound Card

    Thanks for the help however I did struggle across some difficulties:
    These are the errors that 'visual basic.net' has:
    'WaveInStream' not defined
    'WaveFileWriter' not defined
    'WaveFormat' not defined
    'WaveInEventArgs' not defined

    and also there was a warning:
    'NAudio.Wave' name space or type specified in the imports doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases

    I don't know about the warning but it doesn't take an idiot to realise that all the errors are related to 'Wave'. I was wondering if this is because there wasn't something imported that should have been. Hope you can help.
    Thanks

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Posts
    29

    Re: Record From Sound Card

    Sorry didn't read the top bit.
    It's getting late here and I'm quite tired
    I'll download the program NAudio first
    I don't know how you found this
    I searched for ages, 20 minutes or so, and still couldn't find anything

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Posts
    29

    Re: Record From Sound Card

    I tried it and it failed

    maybe it's just me though I will just make what I want in visual C it has examples on the NAudio website on how to do it

  6. #6
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,794

    Re: Record From Sound Card

    Learn DirectSound, you will find you can do quite a lot of things with it...

  7. #7
    Stack Overflow mod​erator
    Join Date
    May 2008
    Location
    British Columbia, Canada
    Posts
    2,824

    Re: Record From Sound Card

    You can record a simple WAV file using mciSendString("record filename"). I'm not sure exactly about the specifics, you should search it.

Tags for this Thread

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