B4A Library MusicWave

A shortcut wrap for this Github project. When I have time I will convert it into a fully B4A integrated lib.

Posting:
1. Sample project - b4aMusicWave.zip
2. MusicWaveLibFiles.zip - extract them and copy them to your additional library folder
3. LibRes.zip - extract the folder and copy the folder and its contents to be on the same folder level as that of the /Files and /Objects folders of the B4A project
4. DemoRes.zip - download it from here https://www.dropbox.com/s/xkmb0o6rxqvwj2i/DemoRes.zip?dl=0. Then extract the folder and copy the folder and its contents to be on the same folder level as that of the /Files and /Objects folders of the B4A project. It also contains the raw folder where the .mp3 file is
5. resource.zip - extract the folder and copy the folder and its contents to be on the same folder level as that of the /Files and /Objects folders of the B4A project

The APK is here: https://www.dropbox.com/s/b5saor9k45c71ej/b4aMusicWave.apk?dl=0

Sample code:
B4X:
#Region  Project Attributes
    #ApplicationLabel: b4aMusicWave
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
  
End Sub

#AdditionalRes: ..\DemoRes
#AdditionalRes: ..\LibRes
#AdditionalRes: ..\resource


Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
  
    Dim mw As MusicWave

    Private Button1 As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("main")
  
    mw.Initialize("")

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub


Sub Button1_Click
  
    mw.startMusicWave
  
End Sub

1.png


2.png


3.png


4.png


5.png
 

Attachments

  • LibRes.zip
    602 bytes · Views: 251
  • resource.zip
    423 bytes · Views: 228
  • b4aMusicWave.zip
    7.9 KB · Views: 236
  • MusicWaveLibFiles.zip
    89.2 KB · Views: 247
Top