How graphics is so perfect

Posted on 2002-05-07
Last Modified: 2010-04-02
Hi I have created an audio player software similar to Winamp. But I wonder how winamp has created the frequency display area which is so much synchronized with the audio output, and also has no flickering. I have minimum knowledge on graphics. Can anybody please help me with some techinques.
Question by:manas_ghosal
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 6993772
it probably uses directx. flicker happens when you re-draw before the frame is complete, you can eliminate this by having 2 display buffers, one that is being drawn, one to draw in, swap when you finish drawing one... (directx and opengl both support this internally, look up double buffering)

LVL 32

Accepted Solution

jhance earned 50 total points
ID: 6994146
I don't think that WinAmp uses DirectX although jonnin's comments about it are accurate.  

I think they just use BitBlt to get a flicker free update.  The freq. display in WinAmp is not what I would consider "animation" where DirectX is needed to get BOTH flicker-free updates and a high enough frame rate for real-time realistic action.
LVL 32

Expert Comment

ID: 6994149
By the way, this is not really a C++ question.  You'd be better off asking questions like this in the Windows Programming topic area.  

C++ has nothing to do with Windows, graphics, or flicker.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 6994326
If you are intrested in compact and very well tested implementation of double buffering look for CMemDc class written by Keth Rule?? ( I ma not sure how to spell his name)
You can find it on and other places.
It is used by number of people to achive flocker free drawing...

And yes, it is not C++ question...
Hope it helps...

Author Comment

ID: 6995817
I apologise for asking this question to c++ programmer experts. I intentionally asked the question to c++ experts bcause I am more concerned on making the synchronization between the audio output and the graphical display. How to make such synchronization?

Expert Comment

ID: 7011031
Two options:

Make your spectral analysis code quicker!

Or buffer the audio output so that when it is played you've already analysed it
LVL 32

Expert Comment

ID: 7011050

Your question grading record is dismal.  Why should any of the experts here spend time working on your questions?

Questions Asked 27
Last 10 Grades Given A A A B A C C C  
Question Grading Record 8 Answers Graded / 8 Answers Received

Why don't you spend some time and resolve these numerous outstanding questions?  Note that some of these are many months old:

Expert Comment

ID: 7011578
You logged in as recently as May 13, 2002 and we have asked that you finalize your open questions in April of this year.  Some of your open questions date back to the year 2000, and must be finalized.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder or Mindphaser will return to finalize these if they are still open in 7 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.

To view your locked questions, please click the following link(s) and evaluate the proposed answer.

*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link 
POINTS FOR EXPERTS awaiting comments are listed in the link below
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
Thanks everyone.
Moderator @ Experts Exchange

Expert Comment

ID: 7146697
Force accepted

** Mindphaser - Community Support Moderator **

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question