[SDL] Ring a bell...
Manuel García Cabrera
manugarciac5 at yahoo.com.ar
Sun May 6 12:26:33 PDT 2007
David Olofson escribió:
> On Sunday 06 May 2007 16:28, Manuel García Cabrera wrote:
>> My application exits when ESCAPE is pressed. However, if another key
>> is pressed I'd like the application to make a sound (like an error
>> bell sound, like those you get when you pressed all the keys on the
>> keyboard at once sometimes). Is there an SDL function to do this?
>
> Not that I know of... If it needs to be SDL, you'd have to implement
> it over the SDL audio API - but then you'd have the advantage of
> having full control.
>
>
>> If not, just some simple C++ way to do this should help.
>
> Well, this is totally platform dependent, and different platforms
> provide different levels of control... Does your application need to
> run on more than one platform?
>
>
> //David Olofson - Programmer, Composer, Open Source Advocate
>
> .------- http://olofson.net - Games, SDL examples -------.
> | http://zeespace.net - 2.5D rendering engine |
> | http://audiality.org - Music/audio engine |
> | http://eel.olofson.net - Real time scripting |
> '-- http://www.reologica.se - Rheology instrumentation --'
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
If it's gonna be platform dependent, never mind.
More information about the SDL
mailing list