Dummy Audio Output

Hello !

Is there also a Dummy AudioOutput Driver ?

There is the DiskOut Driver, but it would be also
good for performance testing and other things to
have a Dummy AudioOutput Driver.

CU

Torsten Giebl wrote:

Hello !

Is there also a Dummy AudioOutput Driver ?

There is the DiskOut Driver, but it would be also
good for performance testing and other things to
have a Dummy AudioOutput Driver.

export SDL_AUDIODRIVER=disk
export SDL_DISKAUDIOFILE=/dev/null

Stephane

Hello !

export SDL_AUDIODRIVER=disk
export SDL_DISKAUDIOFILE=/dev/null

That works on Linux, but
on Windows it gives an
error as there is no /dev/null.

One way to fix this would be adding #ifdefs
to the Disk Out Driver for every OS that
has no /dev/null, also for future OSes

But in my opinion it would be better to
just copy the DiskOut Driver to DummyOut Driver
add that to the SDL AudioDriver List and delete
all the file opening stuff in the DummyOut Driver.

A lot people may think, hey there is a DummyVideo
Driver, there must also be a DummyAudio Driver.

CU

Is there also a Dummy AudioOutput Driver ?

No, but I think it’s a great idea!
https://bugzilla.libsdl.org/show_bug.cgi?id=161

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment