添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
暴走的烤地瓜  ·  json.decoder.JSONDecod ...·  1 周前    · 
温柔的汽水  ·  Executable `python` ...·  6 天前    · 
善良的荔枝  ·  V9 Issue - Husky ...·  6 天前    · 
旅行中的凉茶  ·  What I wish I knew ...·  6 天前    · 
细心的匕首  ·  Python 过滤器 ~ Misaki's ...·  4 天前    · 
火爆的春卷  ·  stream closed ...·  2 年前    · 
善良的稀饭  ·  filestreamresult get ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams @IgnacioVazquez-Abrams I'm new to programming, so would u mind explaining it with a little more details Curran-C Jul 14, 2018 at 19:59

Sound is stored in binary, as is everything related to computers. In order to know where an integer starts and ends, there are different methods used. PyAudio (and I believe most encodings, too) uses a fixed size of bits.

paInt16 is basically a signed 16-bit binary string. 15 bits for the number, and one for the sign, leaving your range options to be (-32768, 32767) if I'm not completely mistaken. 2^15, anyway.

Take a look at this C explanation on data types, as while not strictly Python, it's related to your question: https://www.tutorialspoint.com/cprogramming/c_data_types.htm

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .