I've got an encapsulated Sound using the MemoryWriter and another encapsulated Sound reading from it. I do some CapyTalk based on the duration (set by CaptureDuration in the writing Sound) of the buffer the MemoryWriter writes. For now I solved that by adding a CaptureDuration parameter to the reading class as well which is working fine.
However I was wondering if I can use some SmallTalk to get the sampleFileDuration of the memory? I tried 'recording' sampleFileDuration but of course Kyma is trying to find a sample on disk. Is there a way to let the reading class know the CaptureDuration set in the writing class automatically?