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.


Desktop Recorder


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2009, 11:35 AM
Knows the basics
 
Join Date: May 2008
Posts: 50
Default Desktop Recorder

I need to record wav files in a Desktop application, so I have written this library. It's very simple and probably buggy. Everybody is free to improve it and share it with us.

Excuse me for my bad english, once again.
Attached Files
File Type: zip pachRecorderDesktop.zip (2.7 KB, 18 views)

Last edited by Pachuquin : 03-12-2010 at 07:28 PM. Reason: Updated library. Now, it works MaxLenghtMs
Reply With Quote
  #2 (permalink)  
Old 05-17-2009, 03:42 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 408
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Good work!Big Thanks for lib)
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #3 (permalink)  
Old 03-11-2010, 08:45 PM
Junior Member
 
Join Date: Jan 2009
Posts: 23
Default

I am using the device recorder.dll, and it works great.
As said before, it records WAV files in PCM, stereo, 11025 samples/sec/channel.
BTW, I use this to develop an audible tachometer, by using fast fourier transformation on a short recording, neglecting the 44 byte header of the WAV file.
But I can't seem to get this pachRecorderDesktop library to record WAV files on the desktop to work. My desktop PC doesn't seem to record or save any file when i try this. Did anybody got it working ? Just to know if the mistake is mine or not.
A very, very basic, working example program of just a few lines to record a file would be very nice, just to see if I do nothing wrong. Sometimes, you start doubting at yourself...

Last edited by redbird : 03-11-2010 at 09:09 PM.
Reply With Quote
  #4 (permalink)  
Old 03-12-2010, 05:39 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 604
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Not using this library (which didn't exist then) - check this player-recorder
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #5 (permalink)  
Old 03-12-2010, 07:27 PM
Knows the basics
 
Join Date: May 2008
Posts: 50
Default

I have updated the library and now it works.

This is the Erel's Recorder sample with the pachDesktopRecorder library.

Hope this help.
Attached Files
File Type: zip Recorder.zip (8.4 KB, 22 views)
Reply With Quote
  #6 (permalink)  
Old 03-13-2010, 07:23 AM
Junior Member
 
Join Date: Jan 2009
Posts: 23
Default

Thanks a lot Pachuquin, that is most friendly, I appreciate a lot.
I compiled the small program, and tried it on 2 different PC's, one running Win XP SP3 and one running Win7 64 bit Pro. But no success. I can hardly imagine doing anything wrong, it's just too simple. The program seems to react normally when starting the recording, but when hitting the stop/save button, there is this windows sound, warning that the action can not be executed. And no wav file is found :-(
Could it be that I forgot something obvious, or any other tips ? It would'nt be possible to post your executable file, so I could simply check if it runs here ?
Reply With Quote
  #7 (permalink)  
Old 03-13-2010, 11:33 AM
Knows the basics
 
Join Date: May 2008
Posts: 50
Default

Here you are the sample compiled.

Have you replaced the old library in the Libraries folder?
Attached Files
File Type: zip recorderdesktop.zip (13.1 KB, 19 views)
Reply With Quote
  #8 (permalink)  
Old 03-13-2010, 01:28 PM
Junior Member
 
Join Date: Jan 2009
Posts: 23
Default

OK, this is gonna sound weird:

1) your exe file runs fine, just great ! Thanks for convincing me again there was a problem at my side. Great job, BTW, making that patched libary.
2) i compiled that very simple file myself, but still no results :-(
3) i started triple checking that i had the latest files/libraries everywhere on my PC, removing the library and objects in the IDE, and putting them back in again, recompiling again, and so on...
4) did'nt work at first.
5) at last, I must have done something right, still don't know what it is though, but it works like a charm now. I work on a NAS, changed some settings, started playing with security settings in Win7, and some other stuff, and at once it worked. Can't really explain and it annoys me, I'm sorry.

I feel a bit ashamed, like a real newbie. Anyway, thank you a lot, you made my day !

Edit: a closer look to the resulting WAV learns that it is a mono file that is made on the desktop, instead of the stereo file that was produced before on the device. I don't mind at all, it suits me well, but I thought I would let you know.

And there is an error CS0246 now when trying to compile the same code for a device ? Something about a missing assembly instruction or namespace ?

Last edited by redbird : 03-13-2010 at 01:48 PM.
Reply With Quote
  #9 (permalink)  
Old 03-13-2010, 02:08 PM
Junior Member
 
Join Date: Jan 2009
Posts: 23
Default

I found a way around the error message:

I compiled the code for the desktop as stated above, with your patched library. Everything fine there.
But before trying to compile for the device, remove that patched library for the desktop, and replace it with the normal dummy library "RecorderDesktop.dll". Compile as usual for the device, and you're OK.
I don't know why this influences the device compilation, but it works.

BTW, this is in no way criticism, I'm very happy it works ! Just trying to help.

And of course, on the device you keep getting a stereo file as before. This can be seen in the file length (compared to the duration of the sound), and also in the header of the wave-file: 22050 bytes/second.
Reply With Quote
  #10 (permalink)  
Old 03-13-2010, 02:36 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by redbird View Post
II don't know why this influences the device compilation, but it works.
Because the compiler assumes that the desktop and device libraries are identically structured and uses the objects, methods and properties of the desktop library when compiling for both the device and the desktop. This is why you need a dummy desktop library equivalent to compile for a device library that only works on a device.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 03-13-2010 at 02:39 PM.
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 5 11-23-2009 07:59 PM
Recorder That Emails the File craigisaacs Open Source Projects 9 07-15-2009 06:22 PM
Question about Desktop Recorder for Erel Pachuquin Questions & Help Needed 3 07-10-2009 07:37 AM
Recorder Erel Additional Libraries 11 12-23-2008 04:36 PM
Calendar Recorder Rioven Share Your Creations 5 10-21-2007 06:55 AM


All times are GMT. The time now is 11:47 PM.


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