Click here to Skip to main content
15,034,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I display the pcm wavform by using BCB.
Just like "Gold Wave" and "CoolEdit".
I have tried to use Tchart and some other vcl components but they store data in memory.
So when displaying large media file, the system will run out of memory.
I don'n know how to do it in a better way.
Or can I use the image canvas?

Please give some help. Thanks.

1 solution

For displaying wave files, you will typically need to do some preprocessing to filter out point outside of the visible regions and also to combine points inside the region.

Also the way to combine points will typically vary according to the zoom factor.

Software like Cakewalk Sonar create a file with the information for displaying that image and with use that image when the displayed duration/sampling rate is above a threshold.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900