WaveAudio v1.84 and Borland C++ Builder 6

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

WaveAudio v1.84 and Borland C++ Builder 6

Postby lapoguidi » September 6th, 2007, 8:22 pm

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
Attachments
LiveAudioServer.zip
(3.52 KiB) Downloaded 128 times
LiveAudioClient.zip
(3.78 KiB) Downloaded 133 times
lapoguidi
Member
Member
 
Posts: 3
Joined: September 6th, 2007, 8:10 pm

Postby Kambiz » September 12th, 2007, 10:30 am

Could you resolve the problem? I suspect on translation of TAudioBuffer.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby newbie_bcb » September 23rd, 2007, 1:49 pm

Hi,
if possible I need a little help to install waveaudio in c++ builder 6.

Thanks
Andrea
newbie_bcb
Member
Member
 
Posts: 2
Joined: September 23rd, 2007, 1:29 pm

Postby lapoguidi » September 23rd, 2007, 3:29 pm

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
lapoguidi
Member
Member
 
Posts: 3
Joined: September 6th, 2007, 8:10 pm

Postby Kambiz » September 24th, 2007, 4:12 am

I am glad to hear you could find a solution.

I don't have BCB, therefore I cannot develop BCB compatible code. :(
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby newbie_bcb » September 26th, 2007, 8:26 pm

Thank you for your work!
I resolved thanks to Lapo's help,in pm.

Thank you for your reply.
Thanks you Lapo.

Andrea
newbie_bcb
Member
Member
 
Posts: 2
Joined: September 23rd, 2007, 1:29 pm

Postby Kambiz » September 26th, 2007, 10:03 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby lapoguidi » September 27th, 2007, 3:32 pm

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
lapoguidi
Member
Member
 
Posts: 3
Joined: September 6th, 2007, 8:10 pm

Postby Kambiz » September 27th, 2007, 11:36 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron