IOS Audio Data Structure Description

Source: Internet
Author: User

Struct audiostreambasicdescription {float64 msamplerate; // 44100; sampling rate (Stereo = 8000) uint32 mformatid; // kaudioformatlinearpcm; audio format uint32 mformatflags; // klinearpcmformatflagissiGnedinteger | klinearpcmformatflagispaCked; uint32 mbytesperpacket; // number of bytes in a packet. If the variable packet is set to 0; (format. mbytesperframe * format. mframesperpacket) uint32 mframesperpacket; // Number of frames contained in packet. The value is 1 if there is no compression. When the bit rate is variable, a fixed value up to a certain point, for example, 1024 in ACC. Uint32 mbytesperframe; // (format. mbitsperchannel/* Format. mchannelsperframe); uint32 mchannelsperframe; // number of channels contained in the frame // 1: single channel; 2: Stereo uint32 mbitsperchannel; // 16; // Number of uint32 mreserved digits occupied by voice at each sampling point; // reserved };
 
Audiostreambasicdescription format; // audio format settings. these settings are the same as those in the collection.
memset(&format, 0, sizeof(format));
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.