DJ Peters - FBSound 0.04 already this ready one?

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
lindomar
Posts: 201
Joined: Feb 21, 2006 21:37

DJ Peters - FBSound 0.04 already this ready one?

Postby lindomar » Jun 04, 2007 11:28

Hello DJ Peters.

FBSound 0.04 already this ready one?
I am using FBSound 0.03 in my project, but only lack the volume to be independent for each audio.

Thanks.

Lindomar.
D.J.Peters
Posts: 8024
Joined: May 28, 2005 3:28
Contact:

Postby D.J.Peters » Jun 04, 2007 16:57

Hello Lindomar
you are not lucky with fmod? :-)

V0.04 is in work
plus DirectSound, ASIO2.0 and multiply channel audio more than stereo.

what is wrong with the ChannelVolume and MasterVolume control?

Joshy
lindomar
Posts: 201
Joined: Feb 21, 2006 21:37

Postby lindomar » Jun 05, 2007 9:42

For being sincere I don't like fmod a lot.
And FBSound is open-source.

My problem is independent volume for audioMP3 in Stream FBSound.
For example volume Stream of Fmod.

Code: Select all

'Create soundA for channelA
FMOD_System_CreateStreamEx(system, fileMP3A, FMOD_HARDWARE Or FMOD_SOFTWARE, 0, soundA)
FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, soundA, 0, channelA)

FMOD_Channel_GetVolume(channelA, Volume)        'Get Volume
FMOD_Channel_SetVolume(channelA, Volume)        'Set Volume

'Create soundB for channelB
FMOD_System_CreateStreamEx(system, fileMP3B, FMOD_HARDWARE Or FMOD_SOFTWARE, 0, soundB)
FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, soundB, 0, channelB)

FMOD_Channel_GetVolume(channelB, Volume)        'Get Volume
FMOD_Channel_SetVolume(channelB, Volume)        'Set Volume



In FBSound I don't get to do.
If you have some help I thank.

Thanks Joshy.

Lindomar.
D.J.Peters
Posts: 8024
Joined: May 28, 2005 3:28
Contact:

Postby D.J.Peters » Jun 05, 2007 9:55

do you take a look in the examples and the help file?

you can contol all volumes seperate
for 256 stereo channels
for one realtime stream stereo channel
and of course the master stereo volume

i like fbsound :lol:

click if you can't belive it :-)
english.html

and take a look to
fbs_Set_MasterVolume
fbs_Set_SoundVolume
fbs_Set_StreamVolume
lindomar
Posts: 201
Joined: Feb 21, 2006 21:37

Postby lindomar » Jun 05, 2007 11:09

My problem this in mixing two audio mp3 using Stream.
Does FBSound make this?
Do you have an example?

I think could be like this... but I don't know how to do.

Code: Select all


#include "fbsound.bi"

dim as single  StreamVolumeA
dim as integer ChannelA
dim as integer soundA

fbs_Set_PlugPath("./lib/")
fbs_Init()

'A Suggestion....
soundA = fbs_Create_MP3Stream("./legends.mp3")

fbs_Play_MP3Stream(soundA, ChannelA)

fbs_Get_StreamVolume(soundA, @StreamVolumeA, ChannelA)

? StreamVolumeA

Sleep

end



Would be like this already good for me.

Some idea of how to do this?

Lindomar.
D.J.Peters
Posts: 8024
Joined: May 28, 2005 3:28
Contact:

Postby D.J.Peters » Jun 05, 2007 11:30

hello lindomar
we are talked about multiply realtime streams more than once in the past.

you can play 256 MP3 or WAV files as sound objects together
with only one realtime stream object.

but not two realtime stream objects together.

in the first preview with realtime streams i played more than one stream
together but after FreeBASIC goes from 0.15/0.16 to 0.17 it crashed
only sometimes. Can be that not all parts was totaly thread save.

with the curent stable 0.17 version i will try it again in fbsound 0.04

but this is normaly in games no problem you will have multiply sound
effects together with one longer music track.

i know your DJ software needs multiply realtime streams playable
on two sound devices and if you mix (crossfade from one device to the next)
2 streams must be send to 4 channels on two devices together.

this needs an completly other lib design but again i will try it with v0.04

Joshy

(by the way v0.04 will be renamed and supports NASM, FASM, FBC, VB, VB Net, C# and of course C/C++ compiler too.
So i hope the CPU optimized soundlib will be usefull for a larger group
of developers and i will have more fun to write parts for multichannel recording / playback, MIDI and more DSP effekts and better 3D support.)
Last edited by D.J.Peters on Jun 05, 2007 11:57, edited 1 time in total.
lindomar
Posts: 201
Joined: Feb 21, 2006 21:37

Postby lindomar » Jun 05, 2007 11:51

Joshy

Thank you very much for your help...
For each audio channel MP3 in real time, would be interesting to be all separated for like this to make crosfade in the audio MP3s.
( Volume, Total Time, Current Time, Total Position, Currente Position and Current VU Meter )
I really need that FBSound does that.
At a long time I am asking you.
I will wait for the new version 0.04 of FBSound.
I hope can me to help...

Lindomar.
Alexa
Posts: 56
Joined: May 01, 2007 20:22

Postby Alexa » Jun 17, 2007 23:02

Dear, D.J.Peters

Where can i find and download FBSound ? =(
D.J.Peters
Posts: 8024
Joined: May 28, 2005 3:28
Contact:

Postby D.J.Peters » Jun 18, 2007 0:04

Alexa wrote:Dear, D.J.Peters

Where can i find and download FBSound ? =(

http://www.freebasic.net/forum/viewtopi ... ght=#73461

Joshy
D.J.Peters
Posts: 8024
Joined: May 28, 2005 3:28
Contact:

Postby D.J.Peters » Jun 19, 2007 15:15

Alexa@
do you got it and any problems with it?

Joshy
Alexa
Posts: 56
Joined: May 01, 2007 20:22

Postby Alexa » Jun 21, 2007 3:29

Yes,

The Only Thing i can say about it, is WOW !!! =)

Thank you very much... i hope you make a Donate System, so people like me can donate your project ...

i know if you continue and work on it, it'll be the best Sound Lib in the World ...

Thank you very much Again ...

Cheers ... =)

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 3 guests