当前位置:网站首页>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();
边栏推荐
- How to use layui to display the data in the database in the form of tables
- STM32 uses esp01s to go to the cloud, mqtt FX debugging
- Microsoft stream - how to modify video subtitles
- 软件测试方法和技术 - 基础知识概括
- Do securities account opening affect the security of account opening
- 长路漫漫、技术作伴
- I bet on performance and won the CTO of the company. I want to build Devops platform!
- 2022电工(中级)复训题库及答案
- Missing API interface actual development series (14): ID card real name authentication verification
- redisson使用全解——redisson官方文档+注释(上篇)
猜你喜欢

How to check ad user information?

2022 test question bank and simulation test of tea master (primary) operation certificate

2022 mobile crane driver test exercises and online simulation test

redisson使用全解——redisson官方文档+注释(中篇)
![[Shenzhen IO] precise Food Scale (some understanding of assembly language)](/img/8c/1e64401e812538d8606df557054355.png)
[Shenzhen IO] precise Food Scale (some understanding of assembly language)

她就是那个「别人家的HR」|ONES 人物

2022 tea master (intermediate) recurrent training question bank and answers

H5 页面设置了字体的粗细样式,但是在华为手机里微信打开访问样式不生效?
![[batch DOS CMD summary] extension variables - delay variables CMD /v:on, CMD /v:off, SETLOCAL enabledelayedexpansion, disabledelayedexpansion](/img/ce/6c9e4f2c54710610e8b1f68d6d8088.png)
[batch DOS CMD summary] extension variables - delay variables CMD /v:on, CMD /v:off, SETLOCAL enabledelayedexpansion, disabledelayedexpansion

华为ModelArts训练Alexnet模型
随机推荐
[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions
力扣每日一题-第31天-1790.仅执行一次字符串交换能否使两个字符串相等
Implementation and encapsulation of go universal dynamic retry mechanism
力扣每日一题-第31天-1502.判断能否形成等差数列
Scala language learning-07-constructor
IMDB practice of emotion classification (simplernn, LSTM, Gru)
[Shenzhen IO] precise Food Scale (some understanding of assembly language)
Saving db4i depth camera pictures with MATLAB
【网站架构】一招搞定90%的分布式事务,实打实介绍数据库事务、分布式事务的工作原理应用场景
2022制冷与空调设备运行操作国家题库模拟考试平台操作
weback5基础配置详解
I bet on performance and won the CTO of the company. I want to build Devops platform!
Basic knowledge of MATLAB
redisson使用全解——redisson官方文档+注释(下篇)
漏刻有时API接口实战开发系列(14):身份证实名鉴权验证
Missing API interface actual development series (14): ID card real name authentication verification
[software] phantomjs screenshot
[R language] two /n data merge functions
kubernetes资源对象介绍及常用命令(二)
三极管是一项伟大的发明