添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
小眼睛的热带鱼  ·  Python equivalent of ...·  1 月前    · 
俊逸的火锅  ·  Python 控制台 — Blender ...·  1 月前    · 
健身的抽屉  ·  在 Google Cloud 上使用 ...·  1 月前    · 
直爽的黑框眼镜  ·  Difference between ...·  1 月前    · 
呐喊的槟榔  ·  SQLite子查询详解-CSDN博客·  1 年前    · 
逆袭的甘蔗  ·  java ...·  2 年前    · 
风流倜傥的核桃  ·  jquery map 添加值 ...·  3 年前    · 
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 .