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.
- rwbmaclean asked 10 years ago
- You must login to post comments
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
- fredmack answered 10 years ago
- You must login to post comments
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)
- Brett Paterson answered 10 years ago
- You must login to post comments
Please login first to submit.