(Disclaimer this is geared more towards iOS)
I would use the CoreAudio framework to decompress files read from disk in chunks into a defined buffer in your Pd patch. And then create a transport control system for managing playback and updating of your internal buffer.
In my opinion this would be a fair bit of work to implement. Maybe there are other ways to do it, but I wouldn't say the task is simple.
Cheers, Joe
On 31 March 2015 at 10:18, Stefan Tiedje stefantiedje@googlemail.com wrote:
Hello list, might well be the first post here, though I am well experienced in Max/MSP... As there is no way to get Max patches run on mobile devices, I want to do it in PD using the MobMuPlat apps for Android/iOS. The task would be to simply to play a stereo sound file, but of about one hour lebgth. As MobMuPlat only supports vanilla PD I am restricted to that as far as I know. In the docs and on the net I did not find any way to navigate within that playback. (Its crucial for rehearsals.) The size is too big for loading it into RAM (the mobile devices which are around often have less than 1 GB of RAM), Is there a known way to tackle this seemingly simple task??? A tedious way, I want to avoid, would be to split the sound file into pieces, which would at least let me jump in at specified places, but that would eat up the space on the device, as each piece would have to play until the end... Of course I would also love to find a way to play back an mp3 and freely navigate within that as well... Any hints how to proceed are appriciated...
Stefan Tiedje
-- Les Ondes Memorielles--------x-- -_____-----------|-----------|-- -(_|_ ----|-----|-----()-------
- _|_)----|-----()--------------
---------()----------TJ Shredder http://tjshredder.wordpress.com/
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list