Archive song format

From Buzztard

Jump to: navigation, search

We need a bundled storage to store xml along with binaries.

Contents

[edit] libraries

libgsf made it.

[edit] libgsf

libgsf : Freshmeat page GNU FSF page API Docs

[edit] Examples

simple test example

[edit] libarchive

libarchive : Homepage

[edit] fuse

[edit] minizip

http://www.winimage.com/zLibDll/minizip.html

We could statically include this and define a highlevel api. It this operates in memory we can use gnomevfs or simmilar to support fetching the file from elsewhere.

[edit] loading

 // first fill zip_buffer from file or stream
 handle = zip_open_read (zip_buffer, buffer_length);
 file_buffer = zip_read (handle,file_path, &buffer_length);
 zip_close (handle);

[edit] saving

 handle = zip_open_write(&zip_buffer, &zip_length)
 zip_write (handle, file_buffer, buffer_length)
 zip_close (handle);
 // now send zip_buffer to file or stream

[edit] structure

song.bzt
  song.xml
  wavetable
    beat.wav
  cliptable
    zoom.avi
    star.png
  plugins
    x86
      kick.so
  • allow to disable storing plugins
    • song loading need plugin-fetch mechanism anyway
Personal tools
collaboration

SourceForge Logo

GStreamer Logo

Linux Sound Logo

MediaWiki

Valgrind

GNU Library Public Licence

GNU Free Documentation License 1.2