B4J Library [B4x] WavRandomAccessFile

A wav file aware wrapper for RandomAccessFile that makes mixing and jumping around audio files easier. This implementation has the same functionality as the version in JAudioTrack2, but does not rely on JavaxSound library and therefore should work in B4a and possibly B4i.

You can also read information stored in the wav files Chunks other than the data chunk.
To test it download the example project WavRAF-Tezt.zip and an example wav file in the attached metadat.zip.

See the example projects jAudioTrack2 - SimpleMixer and jAudioTrack2 - Mixer Full for more information.

Please let me know if it works on B4i if you have reason to test it.

Update V0.11
  • Made WavHeaderChunkMap available after initialization (also updated test project)
  • Fix for edge case where fmt is not the first chunk.
 

Attachments

  • metadata.zip
    148.2 KB · Views: 228
  • B4xWavRandomAccessFile-b4xlib.b4xlib
    2.4 KB · Views: 238
  • WavRAF-Test.zip
    2.2 KB · Views: 243
Last edited:

stevel05

Expert
Licensed User
Longtime User
Update V0.11
  • Made WavHeaderChunkMap available after initialization
  • Fix for edge case where fmt is not the first chunk.
 
Top