Old 15th September 2003, 16:36   #1
MrSmith
Junior Member
 
Join Date: Apr 2002
Location: -
Posts: 28
Send a message via AIM to MrSmith Send a message via Yahoo to MrSmith
minivis Pause And Stop

Is there a proper way to keep the vis rendering when winamp is paused or stopped, ive looked around and seen many bodges but not a nice way ?

Thanks
MrSmith is offline   Reply With Quote
Old 22nd September 2003, 12:17   #2
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
1. First of all, is it the built-in mini vis in Winamp's Main Window you are writing about? If so I'm sure you're writing an input plugin, and want to have the same effect like when ShoutCAST streams are being buffered?
2. Or, are you talking about your own visualization plugin, and are doing all the rendering in Render().

Give me some more info, on exactly what you want to do...
saivert is offline   Reply With Quote
Old 22nd September 2003, 12:20   #3
MrSmith
Junior Member
 
Join Date: Apr 2002
Location: -
Posts: 28
Send a message via AIM to MrSmith Send a message via Yahoo to MrSmith
The 2nd one. is there another function wait or something ?
MrSmith is offline   Reply With Quote
Old 9th November 2003, 01:58   #4
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
You must do something like this:

1) Set up a timer.
2) Handle rendering in the OnTimer event (possibly WM_TIMER)
3) Make a copy of spectrumdata and waveformdata in the Render() function to global variables called lastSpecData and lastWaveData.
4) Then use lastWaveData and lastSpecData in the OnTimer event.

Further, to copy the spectrumdata and waveformdata do this:

In Delphi:
Move(lastSpecData, spectrumdata, sizeof(spectrumdata));

In C/C++:
memcpy(spectrumdata, lastSpecData, sizeof(spectrumdata));

or something, check out the reference manuals on Move and memcpy.
saivert is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump