Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P 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: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 275 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: Ioannina, Greece
Posts: 356
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: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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 Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
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 - Borne
Posts: 47
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
Senior Member
 
Join Date: May 2007
Posts: 125
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: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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 Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
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: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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: http://www.basic4ppc.com/forum/questions-windows-mobile/1911-program-crashes-recorder-dll.html
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
player-recorder derez Share Your Creations 5 11-23-2009 08:59 PM
Program crashes in recorder.dll HARRY Questions (Windows Mobile) 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 09:23 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0