当前位置:网站首页>Golang Beep包 播放mp3 无法获取总长度 streamer.Len()为0 其他格式却可以
Golang Beep包 播放mp3 无法获取总长度 streamer.Len()为0 其他格式却可以
2022-06-10 14:36:00 【Deng_Xian_Sheng】

可以将[]byte转为File使用,效果和os.Open()一样。
我尝试了
os.NewFile(0, "").Write()
但是控制台输出乱码,声音也无法播放
于是参考embed实现了一个
https://blog.csdn.net/Deng_Xian_Sheng/article/details/125126127
边栏推荐
- [discrete mathematics review series] III. concept and operation of sets
- [discrete mathematics review series] IV. figure
- js获取数组中最大值
- 【离散数学期复习系列】三、集合的概念及运算
- 【Vue/js】通过localStorage浏览器实现变量和对象的本地缓存(图文+完整源代码)
- For the first time, the Pentagon admitted to funding 46 biological facilities in Ukraine. Russia once revealed that only three were safe
- Insight technology was selected into the "Aijian · privacy computing manufacturer panorama report" and was rated as a representative manufacturer of financial solutions
- 北京/上海内推 | 微软亚洲研究院系统与网络组招聘全职实习生
- 这个牛逼的低代码生成器,现在开源了!
- 数仓的基本概念
猜你喜欢

C multithreading learning note 3

CVPR 2022 | frame by frame motion representation of long video based on sequence contrast learning

北京/上海内推 | 微软亚洲研究院系统与网络组招聘全职实习生

初试c语言之第二次笔记

【离散数学期复习系列】一、命题逻辑
![[discrete mathematics review series] VI. tree](/img/ec/2755c9328a04483080789b366f2d96.png)
[discrete mathematics review series] VI. tree
![[logodetection data set processing] (3) divide the training set into multiple folders by category](/img/eb/49c65f9af4c899b8cffaeec630be79.png)
[logodetection data set processing] (3) divide the training set into multiple folders by category

SIGIR 2022 | 港大、武大提出KGCL:基于知识图谱对比学习的推荐系统

【重庆大学】初试复试资料分享(附考研群)

Meta公司新探索 | 利用Alluxio数据缓存降低Presto延迟
随机推荐
2022 practice questions and online simulation test for the third batch of Guangdong Provincial Safety Officer a certificate (principal)
js获取数组中最大值
初学者自己搭建博客的设计工具和技巧
New exploration of meta company | reduce Presto latency by using alluxio data cache
Collision detection unity experiment code
Cell asynchronously invokes method change records
算力网络照进现实,浩鲸科技如何构建?
Leetcode 2293. Minimax game (yes. One pass)
Gorm set foreign key
【离散数学期复习系列】五、一些特殊的图
[Chongqing University] information sharing of preliminary and second examinations (with postgraduate entrance examination group)
LeetCode_ 21 (merge two ordered linked lists)
2022年制冷与空调设备运行操作理论题库模拟考试平台操作
北京/上海内推 | 微软亚洲研究院系统与网络组招聘全职实习生
C multithreading learning note 4
Insight Technology a été sélectionné dans le rapport panorama des fournisseurs d'analyse de l'amour et d'informatique de la vie privée et a été évalué comme représentant des fournisseurs de solutions
【LogoDetection 数据集处理】(1)将数据集切分为训练集和验证集
Operation of simulated examination platform for theoretical question bank of refrigeration and air conditioning equipment operation in 2022
【LogoDetection 数据集处理】(2)画出训练集图片的标注框
Flutter Icon Stack LIsttitle... Learning summary 3