Page 1 of 1

bored times... got an idea? please let me try

Posted: Mon Jun 21, 2004 10:07 pm
by Dreglor
well the topic kinda tells you how bored i'm am right so if you have any ideas (that aren't totally impossible) please let me try and waste my time working on it :)

Posted: Mon Jun 21, 2004 11:15 pm
by eriksradio
Hi Dreglor

I have been trying to make a typical FFT sound display.

If you search for "sound capture" by "Flype" as a past submission.

It was a way of capturing to file sound and at the same time it showed a"scope type" display of the audio. I have modified this somewhat for my own needs but cannot make the display show as FFT.
I have played with the FFT.DLL (by Deeth) with no progress. I wish to use this in an Amateur Radio program. Maybe it can be done in code without the DLL (preferred) or with DLL (no problem)

Well there is a challenge, a bit above me.

Thanks, Erik.

Posted: Mon Jun 21, 2004 11:31 pm
by Dreglor
hmm i look into it :)
thanks for the challange by the way :D
edit:
i looked at the program (not dll yet) and it looks like a normal scope the only problem is that the scale of the scope is way to small so when volumes have to be set to very low levels to see anything

and is the problem with this now is that the program can't "hear" the sound you have pumping out?
or is it the how the sound drawen on the screen?

Posted: Tue Jun 22, 2004 12:13 am
by eriksradio
Yes, That was what it appeared to be, a very small buffer, 4 bytes. If it could be set to 512 (enough for satiisfactory definition) . 1024 would look nicer though.

The sound format I am interested in is
11025 ,16bit and mono.
This is what is needed in my program.

Posted: Tue Jun 22, 2004 12:20 am
by eriksradio
I forgot, I am not interested in hearing the sound.
Only seeing the display and saving it to file as already the program does.

The FFT display is used for tuning purposes in the Digital Program I hope to write in PB (I have it developed in VB6 and Delphi all OK). It is also used
to display scrolling callsigns and rudimentary pictures. I can develop the FFT to produce the typical waterfall display, scrolling from top to bottom. I can do this, but I have to get the FFT working first.

Posted: Tue Jun 22, 2004 12:28 am
by eriksradio
Even more, sorry I forgot.

I have used the FFT display as a seperate part of the program.
The problem then is to save the incoming audio stream. The MCI commands work fine, but the sound card will not be shared in W98, so it fails. W98 will not do both at the same time. It is all OK in XP and ME. The advantage of the Flype system is that the sound is captured and appended to the file. The MCI system holds it in an ever increasing buffer size until it is told to save it to file. Some of these buffers can end up 100m or so.

Posted: Tue Jun 22, 2004 1:03 am
by Dreglor
well that dll your using i looked into it and (if i reading it correctly :\) it returns doubles, could this be your problem?
it seams to crash when i try to do any of the functions...

Posted: Tue Jun 22, 2004 2:16 am
by eriksradio
That could be the problem, but with my knowledge of programming cannot fathom it out. As you say it seems to give the DLL the buffer as a word but needs doubles instead.
I will have a fiddle to see if I can get any results. Thanks for the clue.

Posted: Tue Jun 22, 2004 10:48 pm
by eriksradio
Hi Dreglor

No luck so far.
I am away for a week.
Often a break and fresh start might produce results.