| View previous topic :: View next topic |
| Author |
Message |
lapoguidi Member

Joined: 06 Sep 2007 Posts: 3
|
Posted: 06/09/07 20:22 Post subject: WaveAudio v1.84 and Borland C++ Builder 6 |
|
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 |
| Description: |
|
 Download |
| Filename: |
LiveAudioServer.zip |
| Filesize: |
3.52 KB |
| Downloaded: |
10 Time(s) |
| Description: |
|
 Download |
| Filename: |
LiveAudioClient.zip |
| Filesize: |
3.78 KB |
| Downloaded: |
21 Time(s) |
|
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1347 Location: Tehran, Iran
|
Posted: 12/09/07 10:30 Post subject: |
|
Could you resolve the problem? I suspect on translation of TAudioBuffer. |
_________________ Kambiz
 |
|
|
|
 |
newbie_bcb Member

Joined: 23 Sep 2007 Posts: 2
|
Posted: 23/09/07 13:49 Post subject: |
|
Hi,
if possible I need a little help to install waveaudio in c++ builder 6.
Thanks
Andrea |
|
|
|
|
|
 |
lapoguidi Member

Joined: 06 Sep 2007 Posts: 3
|
Posted: 23/09/07 15:29 Post subject: |
|
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 |
|
|
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1347 Location: Tehran, Iran
|
Posted: 24/09/07 04:12 Post subject: |
|
I am glad to hear you could find a solution.
I don't have BCB, therefore I cannot develop BCB compatible code.  |
_________________ Kambiz
 |
|
|
|
 |
newbie_bcb Member

Joined: 23 Sep 2007 Posts: 2
|
Posted: 26/09/07 20:26 Post subject: |
|
Thank you for your work!
I resolved thanks to Lapo's help,in pm.
Thank you for your reply.
Thanks you Lapo.
Andrea |
|
|
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1347 Location: Tehran, Iran
|
Posted: 26/09/07 22:03 Post subject: |
|
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
 |
|
|
|
 |
lapoguidi Member

Joined: 06 Sep 2007 Posts: 3
|
Posted: 27/09/07 15:32 Post subject: |
|
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 |
|
|
|
|
|
 |
Kambiz Administrator


Joined: 07 Mar 2003 Posts: 1347 Location: Tehran, Iran
|
Posted: 27/09/07 23:36 Post subject: |
|
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
 |
|
|
|
 |
|