DJ Peters - FBSound 0.04 already this ready one?
DJ Peters - FBSound 0.04 already this ready one?
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.
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.
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
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.
In FBSound I don't get to do.
If you have some help I thank.
Thanks Joshy.
Lindomar.
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
If you have some help I thank.
Thanks Joshy.
Lindomar.
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
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
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
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.
Would be like this already good for me.
Some idea of how to do this?
Lindomar.
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
Some idea of how to do this?
Lindomar.
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
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.)
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.
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.
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.
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
http://www.freebasic.net/forum/viewtopi ... ght=#73461Alexa wrote:Dear, D.J.Peters
Where can i find and download FBSound ? =(
Joshy
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact: