Return value of loadIntoSample and loadIntoSampleFromData

,

Hello,

I have two questions/feature requests about the Sample API:

  1. how can I tell whether loadIntoSample failed or not? In case of sample->load I can check for aNULL return value, but with this what should I check? I guess I could use getData, but that's kinda inconvenient; perhaps loadIntoSample could return an int to signal success or failure?
  2. we have loadIntoSample and newSampleFromData, but no loadIntoSampleFromData: is there a reason for it? What if I want to recycle an existing AudioSample and load into it from memory rather than from file?

Thank you!