Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,所以在音频文件中,我们有 8 位(字节)、16 位(短)、32 位(整数、浮点)和 64 位(双精度)的样本。我的问题是 32 位,如果我正在查看整数或浮点数,我如何从 4 个字节中确定。现在我正在阅读所有值作为浮点数并希望最好。为简单起见,让我们假设小端。
我还应该从我读过的所有内容中注意到浮点值可能会或可能不会被标准化,因此即使浮点值也可能超过 1 和 -1。