Skip to main content
8 events
when toggle format what by license comment
Apr 5, 2023 at 0:08 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Mar 5, 2023 at 23:59 history edited Michael E2
edited tags
Mar 5, 2023 at 23:58 comment added Michael E2 If you (or developers at WRI) define a function func, you may, at your discretion, define func["Properties"] to be whatever you like. The developers at WRI define it for some objects and not for all. But it has to be defined by your code (or by the internal code in the case system objects. Sometimes it's obj["Methods"], sometimes both are defined, sometimes both are defined and different.).
Mar 5, 2023 at 22:54 comment added Jason B. Use GeneralUtilities`PrintDefinitions[AudioStream] and you will see several definitions of the form AudioStream[...][prop_] := .... That is where the SubValues of AudioStream are defined.
Mar 5, 2023 at 22:41 answer added Adam timeline score: 1
Mar 5, 2023 at 11:37 comment added Albert Retey I think what you are looking for is in SubValues[AudioStream] and FormatValues[AudioStream]. As they are only "syntax" wrappers for other functions you can't learn much about the inner workings, but probably this is good enough to understand how you can create something that behaves the same. For the inner workings: this looks much like it is using some library not written in Mathematica which is accessed with the help of a handle identified by the "ID". Investigating symbols in the Audio`AudioStreamInternals` package might give some clues...
Mar 5, 2023 at 10:48 comment added Daniel Huber To et info about the stream, you write e.g.: stream["SampleRate"]
Mar 4, 2023 at 21:21 history asked Adam CC BY-SA 4.0