0
0

Hello, I currently need a program for pocket pc 2003, which should be very much like the recording sample given in fmod ce, that is it should first record, then play it, while playing it should take the FFT, and get its spectrum and save it in some sort of file, then maybe plot it. It should also be able to save the recorded sound as a wav file, and load any wav file for playing and taking the FFT again. I know that FMOD doesn’t have any functions for plotting, but it should not be so hard. If anybody can help me with the code, I’d appreciat it. So basically it’ll have 5 buttons: record, play(& take fft), save wav, save fft, and load. I also don’t want to load/save a predefined .wav file, if possible I should choose the name to be loaded or saved.

  • You must to post comments
0
0

Checking forums, and reading the examples carefully, I did most of the functions except the plotting, which I’ll google for a nice spectrum plotter for CE. Tips about plotting are welcome 😀

My second problem is about getting a filename from the user as an input, and reading / writing to that file name. Unfortunately I don’t know much about CE programming, I used to have a simple C++ function, which I’ll post here, if you guys can make it into CE (pocket pc) compatible, it’d be great. Because I can’t seem to take any keyboard data as input for pocketpc. Well here’s the code for win32 c++:

char type, *filename;

filename = prompt_string( "Please enter a file name", "default.txt" );

char prompt_string ( char msg[], char *def )
{
char *retval;
retval = ( char * ) malloc( sizeof( char )
100 );
printf( "%s [%s]: ", msg, def );
gets( retval );
if ( strlen( retval ) == 0)
{
strcpy( retval, def );
}
return( retval );
}

Please help me with this, the old code of course works fine for normal C++, but not for the CE in embedded C++.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.