When loading a OneShotPlayer with a larger WAV file (9,424,640 samples) the build in Designer fails with "heap allocation request too large"
<< 0,create_module,OneShotPlayer1____PS,ModulePeriodicStreaming,0,1,0,wire13,0,9424736,512,0,0,1,0,0,7,0,0,0,0
>> 0,failed,heap allocation request too large
I have edited the .ini file to substantially increase the heap sizes, but the build still fails.
The docs show wavLength is unrestricted.
How does one play a larger WAV file using a OneShotPlayer?
Thank you,
2
R
3:45pm
Hi Rich, sorry for the late reply. Are you having this issue on the native target?
3:55pm
Hi Andrew, yes it's the native target, a Win10 Enterprise laptop, 64-bit, 16GB RAM, Intel i5-7440HQ @ 2.80GHz.
The layout will compile with shorter stereo WAV files, but the player playsback with mis-sampled distortion.
4:43pm
Rich,
I was able to reproduce your issue by loading in a similarly sized wav file. Dramatically increasing the SLOW heap size to fit the entire wav file fixed the issue for me, but also caused a sample distortion issue. We will be looking into this and getting back to you ASAP.
4:52pm
Thank you Andrew. Glad to read you're able to duplicate the issue.
10:21am
Hi Rich,
There is most definitely a bug with this module. We have filed a ticket and are working on a fix.
If you can provide me with some more info about what you are trying to do, I can help you find a workaround. Thanks!
11:44am
HI Andrew, I wanted to make a test jig using WAV players modules as proof of performance, and which will be the audio source for more complex processing tasks. For example, in the layout below, I'm using two oneshot players mixed with a Line Input, to test different sampling rates, channels and bit depths.
3:29pm
Hi again,
It looks like there is a bug with stereo .wav files, but mono .wav files seem to work OK. We have filed a ticket and are working on this.
9:45am
Hi Rich,
What version of Audio Weaver are you using?
9:52am
Andrew, I'm running v6.18.02
11:45am
Okay great. We are working on a hotfix and will get it to you as soon as possible. Thank you for your patience.