Need simple sound
Vladimir Panteleev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jul 4 04:59:33 PDT 2017
On Monday, 3 July 2017 at 10:40:03 UTC, Martin Tschierschke wrote:
> On Monday, 3 July 2017 at 09:24:35 UTC, Guillaume Piolat wrote:
>> On Monday, 3 July 2017 at 08:55:20 UTC, Martin Tschierschke
>> wrote:
>>> Hello for a simple game I would like to add some very simple
>>> sound, not much different than the beeps of "PAC Man". Is
>>> there anything I can use for this?
>>
>> DerelictSDL supports the loading of SDL_mixer, which makes it
>> very practical.
> Thank you for the hint, a short google search was not so
> successful, can you give me
> an additional hint / link?
> I think I would have to produce a time series of a sinus for
> example and to play it?
Here's a program that plays some square waves:
https://dump.thecybershadow.net/9db4fcd7b004e5dfccf537e49cbb72a6/test.d
More information about the Digitalmars-d-learn
mailing list