Jump to page: 1 2 3
Thread overview
Need simple sound
Jul 03, 2017
Guillaume Piolat
Jul 04, 2017
Vladimir Panteleev
Jul 04, 2017
Dukc
Jul 04, 2017
Sebastiaan Koppe
Jul 05, 2017
FoxyBrown
Jul 05, 2017
Sebastiaan Koppe
Jul 05, 2017
Sebastiaan Koppe
Jul 06, 2017
FoxyBrown
Jul 06, 2017
Sebastiaan Koppe
Jul 06, 2017
FoxyBrown
Jul 06, 2017
Sebastiaan Koppe
Jul 06, 2017
FoxyBrown
Jul 07, 2017
Mike Parker
Jul 06, 2017
FoxyBrown
Jul 06, 2017
FoxyBrown
Jul 07, 2017
Sebastiaan Koppe
Jul 05, 2017
Adam D. Ruppe
July 03, 2017
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?
July 03, 2017
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.
July 03, 2017
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?




July 04, 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

July 04, 2017
On Tuesday, 4 July 2017 at 11:59:33 UTC, Vladimir Panteleev wrote:
> 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

Cool, will try!
July 04, 2017
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?

When simplicity is the matter number 1, Arsd-official most likely what you're looking for. It has a library file for audio. Simpleaudio.d or Simplesound.d, not sure which it was.
July 04, 2017
> 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?

Portaudio is simple as well. And nice cross platform.
July 05, 2017
On Tuesday, 4 July 2017 at 17:51:06 UTC, Dukc wrote:
> When simplicity is the matter number 1, Arsd-official most likely what you're looking for. It has a library file for audio. Simpleaudio.d or Simplesound.d, not sure which it was.

simpleaudio.d. It'd probably be good enough for this (it works on Windows and Linux only though, no Mac), but I'm still not quite happy with the module which is why I didn't bring it up here.
July 05, 2017
On Tuesday, 4 July 2017 at 20:37:44 UTC, Sebastiaan Koppe 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?
>
> Portaudio is simple as well. And nice cross platform.

are there any bindings?
July 05, 2017
On Wednesday, 5 July 2017 at 05:34:37 UTC, FoxyBrown wrote:
> On Tuesday, 4 July 2017 at 20:37:44 UTC, Sebastiaan Koppe wrote:
>> Portaudio is simple as well. And nice cross platform.
>
> are there any bindings?

Sure, see http://code.dlang.org/packages/portaudio
« First   ‹ Prev
1 2 3