Javascript:UInt8Array到Float32Array(Javascript: UInt8Array to Float32Array)
我有一些8位PCM格式的音频缓冲区需要通过网络音频播放,只能接受签名的32位PCM。 现在我有ArrayBuffer的pcm_u8数据片段(来自Uint8array)。 我怎样才能将它转换为Float32Array?
I have some audio buffer in usigned 8bit PCM format need to play via web audio which only accept signed 32bit PCM. And now I have ArrayBuffer for pieces of pcm_u8 data(come from Uint8array). How can I convert it to Float32Array?
原文:https://stackoverflow.com/questions/34669537
更新时间:2022-11-27 19:11
最满意答案
这描述了JDK9的
javac
命令行工具语法。你的命令应该是
javac -d mods\com.me.mymodule src\com.me.mymodule\module-info.java src\com.me\mymodule\com\me\mymodule\Main.java
其中
module-info.java
和Main.java
都是“sourceFiles”,而-d mods\com.me.mymodule
指定目标目录。This describes the JDK9's
javac
command-line tool syntax.Your command should be
javac -d mods\com.me.mymodule src\com.me.mymodule\module-info.java src\com.me\mymodule\com\me\mymodule\Main.java
Where both the
module-info.java
andMain.java
are "sourceFiles", while-d mods\com.me.mymodule
specifies a target directory.
相关问答
更多-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
IntelliJ - 将Java项目/模块转换为Maven项目/模块(IntelliJ - Convert a Java project/module into a Maven project/module)[2023-09-21]
右键单击该模块,选择“添加框架支持...”,并选中“Maven”技术。 (这也创建一个pom.xml来进行修改。) 如果您的意思是添加源存储库元素,我认为您需要手动执行,不能确定。 Pre-IntelliJ 13这不会将项目转换为Maven标准目录布局 ,它将会改变13+。 Right-click on the module, select "Add framework support...", and check the "Maven" technology. (This also creates a p ... -
告诉intelliJ在java项目中使用scalac编译模块?(Tell intelliJ to compile module with scalac in a java project?)[2022-07-31]
按https://intellij-support.jetbrains.com/hc/en-us/community/posts/206001829-Project-configuration-explained : 需要使用Scalac进行编译的模块应该附加Scala方面。 进一步向下(我认为你想要的): 要向现有模块添加Scala支持: 在项目视图中右键单击该模块,选择“添加框架支持...” 检查技术列表中的“Scala”(如果模块附加了Scala构面,则不可用) 提供Scala安装的路径(如果未检测到 ... -
我总是选择为源文件和类文件创建单独的文件夹,它只是将您的src文件和输出文件分开 I always choose Create separate folders for source and class files, it's just separate your src files and your output files
-
根本原因是由于安装了错误的Java Web facet,WTP项目配置失败。 您可以尝试确定EAR项目是否具有部署描述符,如果是,则强制保存。 final ReferencedComponent ref = AddComponentToEnterpriseApplicationOp.findReferencedComponent(earwc, wc, se, compse); I had to delete the project facet .xml file so I could recrea ...
-
JIRA使用java创建问题(JIRA creating issue using java)[2022-08-27]
你在哪里获得有关API的信息? atlassian的文档已经过时了。 首先,你的pom.xml应如下所示:Netbeans:安装了Java模块但无法创建Java项目,为什么?(Netbeans: Java module installed but can not create a Java project, why?)[2022-07-25]
不幸的是,你遗漏了你正在使用的操作系统,你没有提到你尝试过的NetBeans版本! 你应该完全卸载netbeans。 在UNIX操作系统上,您可以在homedir中找到.netbeans文件夹,netbeans可以保存大量信息。 也删除这个文件夹(我不知道这个文件夹存储在Windows操作系统上的位置)。 删除了netbeans和这个文件夹之后,尝试重新安装。 现在应该看起来好多了! Unfortunately you left out the OS you are using and you didn't ...模块中没有Processor 。 您的MetricKeyAggregator需要实现Processor并简单地定义为bean; 你不需要输入/输出通道或变压器。 请参阅此测试以获取示例。 There's no Processor in your module. Your MetricKeyAggregator needs to implement Processor and simply be defined as a bean; you don't need in/out channels or a tr ...这描述了JDK9的javac命令行工具语法。 你的命令应该是 javac -d mods\com.me.mymodule src\com.me.mymodule\module-info.java src\com.me\mymodule\com\me\mymodule\Main.java 其中module-info.java和Main.java都是“sourceFiles”,而-d mods\com.me.mymodule指定目标目录。 This describes the JDK9's javac com ...我认为使用罐子是一个好主意。 您需要在类路径中逐个添加每个必需的jar,以使jar正常运行。 I think using a jar was a good idea. You need to add every required jar in the classpath one-by-one for the jar to run properly.相关文章
更多- 报错说找不到abbrev这个方法,但Array有这个方法的吧?
- Guava Floats类-float基本类型的实用工具类
- javascript常用对象
- javascript快速入门
- Flowcalc32.CE.v5.30 1CD
- [hook.js]通用Javascript函数钩子及其他
- java如何处理float 四舍五入到小数点后面两位,比如说:
- javascript 问题
- ProCAST 2011.0 Win32 & Win64-ISO 1CD(最新完全解密正式版)
- DHI MIKE Zero 2012 SP3 Win32_64 2DVD(水利模型系统)
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)