Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


Recorder


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2007, 03:49 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default Recorder

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
File Type: zip Recorder.zip (7.7 KB, 85 views)

Last edited by Erel : 03-09-2008 at 08:24 PM. Reason: Version 1.1
Reply With Quote
  #2 (permalink)  
Old 12-12-2007, 06:00 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

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

Just curiosity
Why it isn't part of the official libraries?
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #3 (permalink)  
Old 12-12-2007, 06:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

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

I will probably merge this library into the Hardware library in the future.
Reply With Quote
  #4 (permalink)  
Old 12-13-2007, 08:52 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
Reply With Quote
  #5 (permalink)  
Old 12-13-2007, 04:34 PM
Junior Member
 
Join Date: Jun 2007
Location: Netherlands
Posts: 17
Default

Hi Erel,
I don't understand how it works.
Should it be working on a normal PC?
Reply With Quote
  #6 (permalink)  
Old 12-13-2007, 06:08 PM
Knows the basics
 
Join Date: May 2007
Posts: 98
Default

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.
Reply With Quote
  #7 (permalink)  
Old 12-13-2007, 06:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

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.
Reply With Quote
  #8 (permalink)  
Old 12-16-2007, 03:57 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
Reply With Quote
  #9 (permalink)  
Old 12-16-2007, 06:08 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

Quote:
what is the valid range for WaveIn.Start(x)?
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.
Reply With Quote
  #10 (permalink)  
Old 03-09-2008, 08:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

The recorder library was updated (the files are attached to the first post of this thread).
The update includes a fix to this bug: Program crashes in recorder.dll
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
player-recorder derez Share Your Creations 0 03-13-2008 10:26 AM
Program crashes in recorder.dll HARRY Questions & Help Needed 5 03-09-2008 08:26 PM
Calendar Recorder Rioven Share Your Creations 5 10-21-2007 07:55 AM


All times are GMT. The time now is 10:25 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0