[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-games-devel
Subject: Re: [Kde-games-devel] Sound output?
From: "Felix E. Klee" <felix.klee () inka ! de>
Date: 2001-08-03 17:19:07
[Download RAW message or body]
Josef Spillner wrote:
> > I would like to add sound effects and background music to a game that I
> > am developing. How do I do that, where do I find documentation?
>
> As a quick start:
> #include <kaudioplayer.h>
> KAudioPlayer::play("sound.wav");
That seems to be to slow.
> #include <libkmid/libkmid.h>
> KMidSimpleAPI::kMidInit();
> KMidSimpleAPI::kMidLoad("music.mid");
> KMidSimpleAPI::kMidPlay(1);
That looks nice.
> For more complex tasks like fading music in/out and so on, please have a look
> at the aRts documentation.
>
> > Ideally, the game should also have sound when not started under KDE (eg.
> > under Gnome).
>
> This should normally be the case :)
Gnome people usually run esd therefore I guess that using aRTs is not
portable; is that correct?
BTW, does aRTs run on Windows?
Felix
_______________________________________________
Kde-games-devel mailing list
Kde-games-devel@master.kde.org
http://master.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic