ok, so this seems to be working! In SuperCollider, it is possible to stream audio from a file and to avoid loading a bigger sound file to a buffer which causes troubles with the limited RAM (512) of Bela.
So here is the possible solution in SC code:
(
SynthDef(\help_Buffer_cue,{ arg out=0,bufnum;
Out.ar(out,
DiskIn.ar( 1, bufnum )
)
}).add;
)
(
s.makeBundle(nil, {
b = Buffer.cueSoundFile(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav", 0, 1);
y = Synth(\help_Buffer_cue, [\bufnum, b], s);
});
)