teotigraphix / CausticSDK

The full software development kit for the Android Caustic Core
31 stars 11 forks source link

PCMSynth num samples and sample bytes #50

Open teotigraphix opened 10 years ago

teotigraphix commented 10 years ago

We talked about this awhile ago, I am just putting it here for completness.

Having the length of samples(we have start and end settings) and a way to get at the sample wav data.

causticrej commented 8 years ago

same issue as the automation, we need a big buffer to transfer stuff between our layers. Samples can be Mb's of data.

teotigraphix commented 8 years ago

Couldn't I send you a file location and you save the sample to disk, then I can load it with my file IO, the num samples would be nice to get returned so I know how large the same is.

On Wed, Nov 25, 2015 at 7:33 AM, causticrej notifications@github.com wrote:

same issue as the automation, we need a big buffer to transfer stuff between our layers. Samples can be Mb's of data.

— Reply to this email directly or view it on GitHub https://github.com/teotigraphix/CausticSDK/issues/50#issuecomment-159594334 .

teotigraphix commented 8 years ago

On this last note, couldn't I pass you a native file path, you write the wav and I could query a progress message like we do with song wav export?

Then I can just read the number of samples and do all the wav logic on my side.

teotigraphix commented 8 years ago

Also, for these writing operations, I keep asking for progress because our layers are not blocking and I have no way of knowing when a file write is complete, just the exact reason I asked for the .caustic file save progress, some of those files could be large and I don't want to try accessing them until they are completely written.