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
–
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
.