One option is to add your own piece with a unique identifier. Most WAV players ignore this.
Another idea is to use the labl fragment associated with the que set at the beginning or end of the file. You will also need a piece of que . See link here
How to write data is simple
- Write
"RIFF" . - save file position.
- Write 4 bytes 0
- Write all existing pieces. Keep the number of bytes written.
- Add your piece. Do not forget to get right. Keep the number of bytes written.
- rewind to the saved position. Write the new size (as a 32-bit number).
- Close the file.
This is a little trickier if you add things to an existing list fragment, but the same principle applies.
Ashelly
source share