添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
愤怒的风衣  ·  能否用JavaScript ...·  1 周前    · 
豪爽的香烟  ·  Broken with Python 3 ...·  8 小时前    · 
发呆的水煮肉  ·  RunCellpose Plugin ...·  8 小时前    · 
害羞的帽子  ·  Unable to install ...·  8 小时前    · 
有胆有识的雪糕  ·  No module named ...·  8 小时前    · 
不羁的打火机  ·  Django 教程 6: ...·  9 月前    · 
有胆有识的玉米  ·  Form Detail·  10 月前    · 
孤独的铁链  ·  5. 结构生物学实验技术·  11 月前    · 
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 .