我用WMP的开发包开发过自己的可视化效果,从中得知要根据频率等条件来在DC上画。具体由一个结构体表述:typedef struct tagTimedLevel{
  unsigned  char  frequency[2][SA_BUFFER_SIZE];
  unsigned  char  waveform[2][SA_BUFFER_SIZE];
  int  state;
  hyper  timestamp;
} TimedLevel;
Members  frequencyProvides a stereo snapshot of the frequency spectrum of the audio data at a time specified by the Plug-in Manager. It can be used for frequency spectrum effects such as graphic equalizers. The frequency value of the first cell is 20 Hz, and the frequency value of the last cell is 22050 Hz.   waveformProvides a stereo snapshot of the power value of the audio data at a time specified by the Plug-in Manager as the first element; the next 1024 stereo power values fill out the rest of the array. It can be used for oscilloscope-type effects.  stateSpecifies one member of the PlayerState enumeration type.  timeStampSpecifies the time the snapshot took place, in a 64-bit integer.现在的问题是:如何在自己的程序中取得与TimedLevel结构体相同的信息?WMP中是在自己画的函数中传过来的。STDMETHODIMP CWM_test::Render(TimedLevel *pLevels, HDC hdc, RECT *prc)Thank in advance.