My program basically boils down to the program below, I recently added
the CD parts and when I did the performance goes from a comfortable
~60fps to a appalling .25 fps. Plus the CD does’nt play until after I
exit my program. Am I using the functions right? Has anyone had
success with code and the cd functions in windows? BTW: It does the
same thing without the call to SDL_CDstatus also.
CD calls are slow. Do them every few seconds instead of every pass
through the game loop.
See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
My program basically boils down to the program below, I recently added
the CD parts and when I did the performance goes from a comfortable
~60fps to a appalling .25 fps. Plus the CD does’nt play until after I
exit my program. Am I using the functions right? Has anyone had
success with code and the cd functions in windows? BTW: It does the
same thing without the call to SDL_CDstatus also.
I got it to play, but everytime I call SDL_CDStatus() the status is
always returned as 0. So I can’t use SDL_CDStatus to tell if the CD
is still playing. I worked around it, but it is rather annoying.
I got it to play, but everytime I call SDL_CDStatus() the status is
always returned as 0. So I can’t use SDL_CDStatus to tell if the CD
is still playing. I worked around it, but it is rather annoying.
Can you post the sample code for testing?
Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
This is essentially what I tested with. I did it with and without a 4
second delay. If I’m still doing something wrong then when I get
everything working I’m gonna write a tutorial on it for the SDL doc
project.