How is it going?
In audioFormatReader, it has a public data member lengthInSamples.
I can update it directly.
I use AudioFormatReaderSource (AudioFormatReader *const sourceReader, const bool deleteReaderWhenThisIsDeleted)
to initialize a audioFormatReaderSource, and keep it in one class as a data member,
then use audioTransportSource.setSource() to initialize the audioTransportSource.
I want to update lengthInSamples in audioTransportSource or audioFormatReaderSource objs later in my application. Is there any way to do it? I do not find the member functions to update lengthInSamples.