Winamp plugin help needed

Ok folks, I need some advice on debugging my plugin for Winamp using SDL.

I’ve gotten it to the point where SDL initializes, sets up a window (or
fullscreen, both work) and displays whatever I write to the surface.

When I close the plugin through winamp (i.e., turn off the plugin), I cannot
reopen it. The SDL_GetError() from SDL_Init() gives me “couldn’t create
window”… even in fullscreen. Yes, I free the surface and use SDL_Quit()
when the plugin is commanded to shut down.

I have to close the Winamp program, then restart it in order to re-run my
plugin.

I presume that trying to use SDL_Quit(), then SDL_Init() again in order to
switch from fullscreen to windowed will not work, either, though I haven’t
tried it. And I’d like that option.

In terms of passing back event keystrokes, I haven’t even gotten into that
yet, but I assume it’ll be difficult to pass commands through SDL back to
the parent window (Winamp). Is this true?

Any advice is much appreciated at this point.

–Andrew_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

“Drew Vassallo” schrieb im Newsbeitrag
news:F3781Np7vXee4fDGCl90000683a at hotmail.com

In terms of passing back event keystrokes, I haven’t even gotten into that
yet, but I assume it’ll be difficult to pass commands through SDL back to
the parent window (Winamp). Is this true?

nope… you can use SendMessages to the parent window if you want
to…

for example use them in your key-event loop and send a message the winamp
window…
look at the sdk… it tells all the nifty stuff you can do to remote
winamp…

Greetings
PeZ

nope… you can use SendMessages to the parent window if you want
to…

Sounds good… any idea on the other part of my question? I still can’t get
the plugin to re-initialize… I get “Couldn’t create window” from SDL after
I Quit() and try to Init() again.

–Drew_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Is SDL_OPENGLBLIT slower than SDL_OPENGL ??

_------------------------------------------------------------.
| Nahuel Greco Web Development - Open Source |
| http://www.codelarvs.com.ar Game Programming - Research |
| Freelance coding / sysadmin Networking. The answer is 42. |
’------------------------------------------------------------’

Is SDL_OPENGLBLIT slower than SDL_OPENGL ??

Yes, much slower. If you have any choice at all, use textures directly.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software