OneShotPlayer fails to build when using larger WAV files

11 posts / 0 new
Last post
Rich Rarey
Offline
Last seen: 1 month 2 weeks ago
Joined: 09/14/2018 - 3:54pm
OneShotPlayer fails to build when using larger WAV files

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

 

 

 

Andrew
Offline
Last seen: 1 week 4 days ago
Joined: 04/12/2018 - 9:25am

Hi Rich, sorry for the late reply. Are you having this issue on the native target? 

Rich Rarey
Offline
Last seen: 1 month 2 weeks ago
Joined: 09/14/2018 - 3:54pm

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.

Andrew
Offline
Last seen: 1 week 4 days ago
Joined: 04/12/2018 - 9:25am

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. 

Rich Rarey
Offline
Last seen: 1 month 2 weeks ago
Joined: 09/14/2018 - 3:54pm

Thank you Andrew. Glad to read you're able to duplicate the issue.

Andrew
Offline
Last seen: 1 week 4 days ago
Joined: 04/12/2018 - 9:25am

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!

Rich Rarey
Offline
Last seen: 1 month 2 weeks ago
Joined: 09/14/2018 - 3:54pm

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.

Andrew
Offline
Last seen: 1 week 4 days ago
Joined: 04/12/2018 - 9:25am

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. 

Andrew
Offline
Last seen: 1 week 4 days ago
Joined: 04/12/2018 - 9:25am

Hi Rich,

What version of Audio Weaver are you using? 

Rich Rarey
Offline
Last seen: 1 month 2 weeks ago
Joined: 09/14/2018 - 3:54pm

Andrew, I'm running v6.18.02

Andrew
Offline
Last seen: 1 week 4 days ago
Joined: 04/12/2018 - 9:25am

Okay great. We are working on a hotfix and will get it to you as soon as possible. Thank you for your patience.