Part 3: Action (hopefully)

For other topics related to the FreeBASIC project or its community.
angros47
Posts: 1443
Joined: Jun 21, 2005 19:04

Re: Part 3: Action (hopefully)

Postby angros47 » Jan 01, 2018 23:16

St_W wrote:Sounds reasonable, could you mention some examples for such features?


Oscillators: sine wave, triangle wave, pulse/square wave, sawtooth wave, wave with custom harmonics, white noise

Filters: low pass, high pass, notch, band pass

Modulators: AM, FM. Phase Modulation, Ring Modulation

ADSR envelope generator: applicable to wave amplitude, to filters, to modulators

Wave sync (a simple feature used on the SID audio chip... very easy to implement, and useful to produce several new waveforms

Ability to play the produced waveform, or to save it as a .WAV file.

With similar feature, would be possible to create almost any possible sound effect: several simple SFX generators use some of those algorithms.
badidea
Posts: 1300
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Part 3: Action (hopefully)

Postby badidea » Jan 02, 2018 20:48

Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.php?wakka=ExtLibTOC be used?
Imortis
Moderator
Posts: 1612
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: Part 3: Action (hopefully)

Postby Imortis » Jan 02, 2018 21:02

badidea wrote:Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.php?wakka=ExtLibTOC be used?


I think the idea would be to use things already available on most systems rather than require FB compiled EXEs to be buldled with extra dlls.
dodicat
Posts: 5701
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Part 3: Action (hopefully)

Postby dodicat » Jan 02, 2018 21:28

badidea wrote:Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.php?wakka=ExtLibTOC be used?

I dowloaded fmod.dll
https://www.dllme.com/dll/download/9290/fmod.dll
It took 30 seconds.
The example code works perfectly.
I added some graphics in the loop
(example 2)
Perfect.
The .exe file is 124 kb.
Conclusion:
I got my sound sorted out in one minute.
badidea
Posts: 1300
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Part 3: Action (hopefully)

Postby badidea » Jan 02, 2018 22:33

Awesome, I think the wiki needs more mentioning. In 10 years of freeBASIC coding now and then, I never looked much at the wiki, but there is a lot of useful stuff. It gets harder and harder to find things on the forum.
BasicCoder2
Posts: 3349
Joined: Jan 01, 2009 7:03

Re: Part 3: Action (hopefully)

Postby BasicCoder2 » Jan 02, 2018 23:40

dodicat wrote:I got my sound sorted out in one minute.

Just did the same. It seems to work fine for me as well. In the past I never needed or at least bothered with using sound in any demo code. At the moment I am using the SDL library. Not sure how fmod compares with SDL_mixer.
Last edited by BasicCoder2 on Jan 03, 2018 3:58, edited 1 time in total.
Imortis
Moderator
Posts: 1612
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: Part 3: Action (hopefully)

Postby Imortis » Jan 02, 2018 23:53

dodicat wrote:
badidea wrote:Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.php?wakka=ExtLibTOC be used?

I dowloaded fmod.dll
https://www.dllme.com/dll/download/9290/fmod.dll
It took 30 seconds.
The example code works perfectly.
I added some graphics in the loop
(example 2)
Perfect.
The .exe file is 124 kb.
Conclusion:
I got my sound sorted out in one minute.


fmod is only free for non-commercial use. If you wish to sell your product, you need to buy a licence from fmod.
angros47
Posts: 1443
Joined: Jun 21, 2005 19:04

Re: Part 3: Action (hopefully)

Postby angros47 » Jan 03, 2018 0:06

That's the reason why I suggest that a native FB sound library should not be like FMOD, FBSound and similar ones: there are already several of them. A native library should be more in line with the "All-Purpose" philosophy.
Imortis
Moderator
Posts: 1612
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: Part 3: Action (hopefully)

Postby Imortis » Jan 08, 2018 15:50

Since the sound library is already in the planning process, I have started another thread to discuss using namespaces for the different parts of the language.

FreeBASIC Namespace Project

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests