当前位置:网站首页>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();
边栏推荐
- Basic number theory -- combinatorial number
- 漏刻有时API接口实战开发系列(14):身份证实名鉴权验证
- 【无标题】
- She is the "HR of others" | ones character
- 力扣每日一题-第31天-1502.判断能否形成等差数列
- 长路漫漫、技术作伴
- Atguigu---- scaffold --02- use scaffold (2)
- LSTM of RNN
- Inftnews | from "avalanche" to Baidu "xirang", 16 major events of the meta universe in 30 years
- redisson使用全解——redisson官方文档+注释(中篇)
猜你喜欢

【批处理DOS-CMD命令-汇总和小结】-Cmd窗口中常用操作符(<、<<、&<、>、>>、&>、&、&&、||、|、()、;、@)

【批处理DOS-CMD-汇总】扩展变量-延迟变量cmd /v:on、cmd /v:off、setlocal enabledelayedexpansion、DisableDelayedExpansion

Atguigu---- scaffold --02- use scaffold (2)

LM08丨网格系列之网格反转(精)

凸印的印刷原理及工艺介绍

QT -- 1. QT connection database

SharePoint - how to quickly check whether SharePoint is standard or enterprise edition?

038 network security JS

How to use layui to display the data in the database in the form of tables
![[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](/img/5e/068268857b8c7c2065ba552fd23dbb.png)
[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
随机推荐
kubernetes资源对象介绍及常用命令(二)
【mysql学习笔记27】存储过程
Gui Gui programming (XV) - use scale to control font size changes
How to check ad user information?
PWN attack and defense world int_ overflow
Inftnews | from "avalanche" to Baidu "xirang", 16 major events of the meta universe in 30 years
Custom events of components ②
[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
Why some people earn nearly 10billion a year, while others earn 3000 a month: the details you ignore actually make the most money
2022年茶艺师(中级)复训题库及答案
Microsoft announces open source (Godel) language model chat robot
Apple account password auto fill
[MySQL learning notes 28] storage function
Huawei modelarts training alexnet model
AUTOSAR learning record (1) – ECUM_ Init
【无标题】
Sorting out tcp/udp communication problems
如何让两融交易更极速
论文学习——水文时间序列相似性查询的分析与研究
源代码加密的意义和措施