Synthesized Sound Data Format
The synthesizer codec accepts sound frames whosesamples
slot contains a binary object of the class'TDTMFCodec
. The data format of the binary object is as follows (note this is a C structure). All values are 16 bits in length.
type 'DTMF' {
unsigned short; /* Parameter block type, set to 1 */ unsigned short; /* Synthesis type (0-4) */ unsigned short; /* Reserved, set to 0 */ unsigned short; /* loop count */ unsigned short = $$CountOf(DTMFTones); /* Number of tone blocks */ wide array DTMFTones { /* specify 1 to 12 tone blocks */ unsigned short; /* frequency integer part */ unsigned short; /* frequency fractional part */ unsigned short; /* sustain amplitude */ unsigned short; /* leading silence in ms */ unsigned short; /* attack in ms */ unsigned short; /* decay in ms */ unsigned short; /* sustain in ms */ unsigned short; /* release in ms */ unsigned short; /* peak amplitude */ unsigned short; /* trailing silence in ms */ }; };
![]()
![]()
![]()
![]()
© Apple Computer, Inc.
26 APR 1997Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help