• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

How graphics is so perfect

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.
0
manas_ghosal
Asked:
manas_ghosal
1 Solution
 
jonninCommented:
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)



0
 
jhanceCommented:
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.
0
 
jhanceCommented:
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.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
mblatCommented:
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 www.codeguru.com 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...
0
 
manas_ghosalAuthor Commented:
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?
0
 
mirtolCommented:
Two options:

Make your spectral analysis code quicker!

Or buffer the audio output so that when it is played you've already analysed it
0
 
jhanceCommented:
manas_ghosal,

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:


http://www.experts-exchange.com/jsp/qShow.jsp?ta=winprog&qid=20264169
http://www.experts-exchange.com/jsp/qShow.jsp?ta=winprog&qid=20188009
http://www.experts-exchange.com/jsp/qShow.jsp?ta=winprog&qid=20174832
http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20293847
http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20291697
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20093305
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20074958
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20073130
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20021633
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20021632
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=11771660
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=11576379
http://www.experts-exchange.com/jsp/qShow.jsp?ta=mfc&qid=20287951
http://www.experts-exchange.com/jsp/qShow.jsp?ta=mfc&qid=20279237
http://www.experts-exchange.com/jsp/qShow.jsp?ta=mfc&qid=20272528
http://www.experts-exchange.com/jsp/qShow.jsp?ta=mfc&qid=20257016
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20299864
http://www.experts-exchange.com/jsp/qShow.jsp?ta=assembly&qid=20296939
0
 
MoondancerCommented:
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.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

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.
http://www.experts-exchange.com/questions/Q.11576379.html
http://www.experts-exchange.com/questions/Q.11771660.html
http://www.experts-exchange.com/questions/Q.20073130.html
http://www.experts-exchange.com/questions/Q.20074958.html
http://www.experts-exchange.com/questions/Q.20093305.html
http://www.experts-exchange.com/questions/Q.20174832.html
http://www.experts-exchange.com/questions/Q.20188009.html
http://www.experts-exchange.com/questions/Q.20257016.html
http://www.experts-exchange.com/questions/Q.20264169.html
http://www.experts-exchange.com/questions/Q.20272528.html
http://www.experts-exchange.com/questions/Q.20279237.html
http://www.experts-exchange.com/questions/Q.20287951.html
http://www.experts-exchange.com/questions/Q.20291697.html
http://www.experts-exchange.com/questions/Q.20293847.html
http://www.experts-exchange.com/questions/Q.20021632.html
http://www.experts-exchange.com/questions/Q.20021633.html
http://www.experts-exchange.com/questions/Q.20296939.html
http://www.experts-exchange.com/questions/Q.20297840.html

To view your locked questions, please click the following link(s) and evaluate the proposed answer.
http://www.experts-exchange.com/questions/Q.20299864.html

*****  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
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643 
POINTS FOR EXPERTS awaiting comments are listed in the link below
http://www.experts-exchange.com/commspt/Q.20277028.html
 
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.
Moondancer
Moderator @ Experts Exchange
0
 
MindphaserCommented:
Force accepted

** Mindphaser - Community Support Moderator **
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now