0
0

Hello,

We’re using the ‘setFileSystem’ override function, with blockalign set to 2048. Unfortunately, our file system requires not only that reads be a multiple of 2048 bytes in length (which is what the setFileSystem blockalign call seems to do), but also that all reads start from a 2048-byte-aligned boundary. When I have > 1 sound in a streaming bank this doesn’t always seem to be the case.

Is there any way to specify in the designer that a bank should be built with particular alignment restrictions (i.e. all tracks in this bank start at an offset that’s a multiple of 2048)?

Thanks!
Ryan.

  • You must to post comments
0
0

Hi,

You could get a non-aligned read size when reading the last bits of a file. For example if your file was 2058 bytes long you would see 2 reads. One for 2048 bytes and second for 10 bytes.

Enjoy

  • You must to post comments
0
0

Thats a pretty restrictive file system. FMOD reads in blocks as well but it doesnt restrict you from reading 1 byte. Your file system should have a buffering layer on top of it to handle these cases.

You can’t change fsbank’s fsb alignment, though they do have a default alignment (what it is I can’t remember right now)

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.