Recorder

Discussion in 'Additional Libraries' started by Erel, Dec 12, 2007.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Using this library you can record and create audio files.
    The desktop library is a "dummy" library.
    The recording functionality is only available on the device.
    The three important methods are:

    Start(LengthMS As Int32) - The maximum length of the record file (milliseconds).
    Stop - Stops the recording.
    Save (File As String) - Saves the last record.

    An example is included in the zip file.

    Attached Files:

    Last edited: Mar 9, 2008
  2. dzt

    dzt Active Member Licensed User

    Nice addition (includes a lot of work as I can see).

    Just curiosity
    Why it isn't part of the official libraries?
  3. Erel

    Erel Administrator Staff Member Licensed User

    Less work than it seems.
    Just small modifications to msdn code.

    I will probably merge this library into the Hardware library in the future.
  4. alfcen

    alfcen Well-Known Member Licensed User

    Hi Erel
    Less work, but great effect. The idea alone is fantastic!
    BTW, what is the valid range for WaveIn.Start(x)?
    '0' and '200000' throw exception errors.
    Thanks a lot.
    Robert
  5. timsteeman

    timsteeman Member Licensed User

    Hi Erel,
    I don't understand how it works.
    Should it be working on a normal PC?
  6. Louis

    Louis Active Member Licensed User

    Hi timsteeman
    If you want to use this library on the desktop, add a reference to RecorderDesktop.dll. If you want this to run on the device, just add a reference to Recorde.dll. The sample B4PPC app is meant for the device, so i you want erel's sample to run on the Desktop, remove Recorder.dll and add RecorderDesktop.dll from the Tools - Conponents dialog.
  7. Erel

    Erel Administrator Staff Member Licensed User

    I forgot to mention (it is now fixed) but this library can only work on the device.
    The desktop library is just a dummy library to allow you to work on the desktop.
  8. alfcen

    alfcen Well-Known Member Licensed User

    Hi Erel,
    Just a thought. The Recorder saves PCM at 11,025kHz sampling, 8 bit, stereo.
    I feel that monoaural would be sufficient for voice memos recorded with the device,
    whilst saving 50% memory. I don't know exactly how the Recoder works and
    what it wraps, therefore unable to judge whether switching to mono is possible or not.
    Cheers
    Robert
  9. Erel

    Erel Administrator Staff Member Licensed User

    This method first allocates the required memory for the given maximum length.
    The error you've encountered was probably raised because of memory restrictions.

    There is no simple way to switch to mono instead of stereo recording.
  10. Erel

    Erel Administrator Staff Member Licensed User

  11. linum

    linum Active Member Licensed User

    What would be the correct command to Stop a Wave file during playback?

    I know that Sound() is the command to play it. Is there a command to stop it while it's playing? Would Wave.Stop work?


    Thank you...
  12. Cableguy

    Cableguy Expert Licensed User

    Look into the Hekkus wrapper in the dll listing...

Share This Page

Loading...