Page 1 of 1

WaveAudio v1.84 and Borland C++ Builder 6

PostPosted: September 6th, 2007, 8:22 pm
by lapoguidi
Hi,
I installed WaveAudio package under Borland C++ Builder 6 and it seems to work fine.
I tried to translate the LiveAudio (Broadcaster and Listener) projects in C++:
1. The server listen for connections and starts to aquire audio from mic;
2. The client receive data from server, but I hear nothing from the speakers.
The only problem I found is that GetWaveAudioFormat and SetPCMAudioFormatS form Winutils can't be resolved, but I forced the WaveFormat to the classical Mono16bit8000Hz format.

I can i do it works?
Have you already got this kind of problems under BCB 6?
Would you check my translatred code? I attached it.

Thanks.

Lapo from Italy

PostPosted: September 12th, 2007, 10:30 am
by Kambiz
Could you resolve the problem? I suspect on translation of TAudioBuffer.

PostPosted: September 23rd, 2007, 1:49 pm
by newbie_bcb
Hi,
if possible I need a little help to install waveaudio in c++ builder 6.

Thanks
Andrea

PostPosted: September 23rd, 2007, 3:29 pm
by lapoguidi
Hi Kambiz,
I was not able to solve the problem.
If I compile the stream sample delphi code in a bcb project it works almost fine, not fully, but if I translate it in BCB it doesn't work (you can see code attached on the first message of this thread)
Anyway, I wrote some code to do more or less the same, not so complete like your code, but enough for me :)

Anyway thanks for sharing your code.

Well, Have you planning to make it BCB compatible?

Have a nice time.
Lapo

PostPosted: September 24th, 2007, 4:12 am
by Kambiz
I am glad to hear you could find a solution.

I don't have BCB, therefore I cannot develop BCB compatible code. :(

PostPosted: September 26th, 2007, 8:26 pm
by newbie_bcb
Thank you for your work!
I resolved thanks to Lapo's help,in pm.

Thank you for your reply.
Thanks you Lapo.

Andrea

PostPosted: September 26th, 2007, 10:03 pm
by Kambiz
Is there any part package incompatible with BCB?

If you please tell me what makes the code incompatible, I'll fix it in the next release to prevent headache for other BC users.

PostPosted: September 27th, 2007, 3:32 pm
by lapoguidi
I haven't the solution for BCB users, I helped newbie_bcb to install the package under BCB 6 adding designintf.pas to the package project and the reg file.
I still have the problem when I try to use some components. It compiles fine, it links fine but at runtime I have some unpredictable results.
In some cases the played WAV jitter, in other cases an Access Violation error appears...
I think some problems are caused from the memory usage.
Delphi and BCB language have some (little?) incompatibilities, maybe tehre're one or more inside, I really don't know, I'm sorry.
Anyway if I will find something I think usefull, I'll write to you.

Thanks again for your good work.

Lapo

PostPosted: September 27th, 2007, 11:36 pm
by Kambiz
Thank you Lapo.

One of problems could be because of function parameters defined with out modifier. Please replace all instance of out with var and rebuild the package.

I hope this helps to use the package inside BCB.