当前位置:网站首页>AArdio - 【问题】bass库回调时内存增长的问题
AArdio - 【问题】bass库回调时内存增长的问题
2022-07-01 07:50:00 【卢光庆】
问题描述:
因想实现如下功能:播放完一首MP3后,想在播放完的回调事件中,自己选择下一首,所以使用
syncCallback实现了此功能。
但运行过程中发现,随着回调函数的执行,内存会持续增长。
测试的时候,选择时间较短的MP3,切换频繁,效果较明显。
在我的破电脑上,win11系统,平均10分钟增长1M左右。
代码如下,有知道原因的,望不吝指正。
import win.ui;
import fonts.fontAwesome;
/*DSG{
{*/
var winform = win.form(text="aardio form";right=759;bottom=469;exmode="toolwindow")
winform.add()
/*}}*/
winform.show();
import bass.channel
play = function(){
if music {
music.stop();
music.free();
music=null;
}
music = bass.channel.open(..io.fullpath("/1.mp3"));
music.syncCallback(play,2/*_BASS_SYNC_END*/);
music.play();
}
play()
win.loopMessage();
边栏推荐
- Oracle create auto increment ID
- Sorting out tcp/udp communication problems
- Do securities account opening affect the security of account opening
- How to get a SharePoint online site created using the office365 group template
- Scala language learning-07-constructor
- Stepsister becomes stepmother, son breaks off relationship with himself, and musk, the world's richest man, why is it so miserable?
- Those high-frequency written tests and interview questions in [Jianzhi offer & Niuke 101] - linked list
- redisson使用全解——redisson官方文档+注释(中篇)
- 力扣每日一题-第31天-1790.仅执行一次字符串交换能否使两个字符串相等
- AUTOSAR learning record (1) – ECUM_ Init
猜你喜欢
Autosar 学习记录(1) – EcuM_Init
论文学习——水文时间序列相似性查询的分析与研究
Apple账号密码自动填充
2022制冷与空调设备运行操作国家题库模拟考试平台操作
Android screen adaptation (using constraintlayout), kotlin array sorting
[programming compulsory training 3] find the longest consecutive number string in the string + the number that appears more than half of the times in the array
Minecraft 1.16.5模组开发(五十一) 方块实体 (Tile Entity)
【批处理DOS-CMD命令-汇总和小结】-Cmd窗口中常用操作符(<、<<、&<、>、>>、&>、&、&&、||、|、()、;、@)
如何使用layui将数据库中的数据以表格的形式展现出来
base64
随机推荐
[R language] two /n data merge functions
浏览器本地存储
Kickback -- find the first palindrome character in a group of characters
2022 test questions and mock examinations for main principals of hazardous chemicals business units
组件的自定义事件②
Rk3399 platform development series explanation (network debugging) 7.30. What will affect the sending process of TCP packets?
Long way to go with technology
Vhost kick & call principle
[kv260] generate chip temperature curve with xadc
[Shenzhen IO] precise Food Scale (some understanding of assembly language)
LM08丨网格系列之网格反转(精)
如何让两融交易更极速
Minecraft 1.16.5 module development (51) tile entity
PWN attack and defense world int_ overflow
Wang Yingqi, founder of ones, talks to fortune (Chinese version): is there any excellent software in China?
【微服务|openfeign】Feign的日志记录
良心安利万向轮 SolidWorks模型素材网站
PWN攻防世界int_overflow
Download xshell and xftp
[microservice openfeign] feign's log record