DirectX audio but no video

Hello!

Two questions:

1. Does anyone have any experience in using SDL under Windows with
   DirectX compiled in using video and sound in fullscreen mode?
   I already posted a question regarding a severe slow down
   problem, but no one could help me so far.
2. Is there any way to use sound under Windows without the
   necessety of having DirectX compiled into SDL.
3. Is it possible to use DirectX for audio but not for video
   output? (I would think no.)

You see, the actual problem is as follows:
(as I said I already posted it before…)

First I had the SDL.dll and libraries coming with DevC++.
Everything worked fine (video) but the sound didn't work properly.
So I was told that I had to compile the DirectX development
libraries into the SDL libraries. That's what I did. Ever since
the sound works perfectly but fullscreen mode is not usable any
more. It's extremely slow (about 40 frames per sec instead of 140)
and SDL_UpdateRect appears to be not working correctly (at least
not with SDL_SetVideoMode using SDL_DOUBLEBUF - not using
SDL_DOUBLEBUF causes very nasty flickering effects when updating a
big screen area - as I said it's SLOW).
Windowed mode works perfectly though, as before.

Can anyone help me with this?

Thanx in advance for any hints…

BiG OSHi============================================

The difference between ingenuity and
insanity is that ingenuity has its limits…

============================================
BiG OSHi
BiG_OSHi at RonnzWorld.com

http://BiG-OSHi.net
http://RonnzWorld.com

BiG OSHi wrote:

3. Is it possible to use DirectX for audio but not for video
   output? (I would think no.)

You might want to search the archives or docs for the "WINDIB"
environment variable, although I seem to recall that this didn’t work
for me. You might have more luck, however…

Ever since
the sound works perfectly but fullscreen mode is not usable any
more. It's extremely slow (about 40 frames per sec instead of 140)
and SDL_UpdateRect appears to be not working correctly (at least
not with SDL_SetVideoMode using SDL_DOUBLEBUF - not using
SDL_DOUBLEBUF causes very nasty flickering effects when updating a
big screen area - as I said it's SLOW).
Windowed mode works perfectly though, as before.

Software or hardware surfaces? What resolution, video card, etc? (Sorry
if this was in your previous post, as I don’t have it any more.)
Fullscreen DirectX is probably best with a hardware surface, double
buffering, and SDL_Flip to update. Also, you don’t want to read from a
hardware surface, in case that is what you’re doing. I was thinking that
perhaps, before you installed the DX development libraries, you were
getting software surfaces which you can read from quite quickly. And
upon installing the libraries, DirectDraw started working, you started
receiving proper hardware surfaces, and therefore the time taken to read
from them goes through the floor. Just an idea.–
Kylotan
http://pages.eidosnet.co.uk/kylotan

Ever since
the sound works perfectly but fullscreen mode is not usable any
more. It's extremely slow (about 40 frames per sec instead of 140)
and SDL_UpdateRect appears to be not working correctly (at least
not with SDL_SetVideoMode using SDL_DOUBLEBUF - not using
SDL_DOUBLEBUF causes very nasty flickering effects when updating a
big screen area - as I said it's SLOW).
Windowed mode works perfectly though, as before.

Try the FAQ:
http://www.libsdl.org/faq.php?action=listentries&category=2#65

You’re probably getting hardware surfaces where you didn’t before,
and your video memory access pattern is really suited for software
surfaces.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment