Hi all
Here is my first two library for B4A.
API version 9.
These libs are working together, how to say,
One is for reverb effect on Music played with the other GPlayer.
Gplayer is exactly the same lib of B4A Mediaplayer, the difference is
contains 5 or 6 new methodes.
- ReverbLib Doc update
- Reverblib V1.40 added all set reverb functions
Lets begin
OK LET'S THANKS TO STEVEL05 for his great Help.
And Ofcourse Thanks To Master EREL for this powerfull devKIT B4A...
Please Test it ... dont forget i learn java, and B4A.... 6% done///
Later
Here is my first two library for B4A.
API version 9.
These libs are working together, how to say,
One is for reverb effect on Music played with the other GPlayer.
Gplayer is exactly the same lib of B4A Mediaplayer, the difference is
contains 5 or 6 new methodes.
- ReverbLib Doc update
- Reverblib V1.40 added all set reverb functions
Lets begin
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim time As Timer
Dim rv As ReverbLib ' Load Reverblib
Dim gp As Gplayer ' Load Gplayer
End Sub
B4X:
Sub Globals
Dim EID As Int
Dim id As Int
Dim s As Float
End Sub
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Load mp3
gp.Initialize2("gmp") ' Init Gplayer
id=0
s=1.0 ' Float
EID=0 'int Id
RV.Initialize
If RV.IsAvailable AND RV.IsInitialized Then
Log("OK")
RV.Enable(True)
RV.SetReverbLevel(2000)
RV.SetReverbDelay(100)
RV.SetDecayTime(10000)
RV.SetRoomLevel(0)
EID=RV.GetID
End If
gp.Load(File.DirAssets,"IonStage.mp3") ' Load MP3
gp.AttachEffect(EID) 'Attach to EID Effect to Gplayer
gp.SetEffectSendLevel(s) 'Send Effect level to Gplayer
gp.Play ' Play MP3
End Sub
OK LET'S THANKS TO STEVEL05 for his great Help.
And Ofcourse Thanks To Master EREL for this powerfull devKIT B4A...
Please Test it ... dont forget i learn java, and B4A.... 6% done///
Later
Attachments
Last edited: