当前位置:网站首页>Aardio - [problem] the problem of memory growth during the callback of bass Library
Aardio - [problem] the problem of memory growth during the callback of bass Library
2022-07-01 07:56:00 【Luguangqing】
Problem description :
Because you want to realize the following functions : Play one song MP3 after , Want to be in the callback event after playing , Choose your next song , So use
syncCallback This function is realized .
But during the operation, it was found that , As the callback function executes , Memory will continue to grow .
When it comes to testing , Choose a shorter time MP3, Frequent switching , The effect is obvious .
On my broken computer ,win11 System , Average 10 Minute growth 1M about .
The code is as follows , Someone knows why , Don't hesitate to correct .
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();
边栏推荐
- Eigen矩阵运算库快速上手
- The database is locked. Is there a solution
- 2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) special operation certificate examination question bank simulated examination platform operation
- LM08丨网格系列之网格反转(精)
- Custom events of components ②
- PostgreSQL source code learning (26) -- windows vscode remote debugging PostgreSQL on Linux
- 5大组合拳,解决校园6大难题,护航教育信息化建设
- 关系数据库如何工作
- Scala language learning-07-constructor
- php laravel微信支付
猜你喜欢
ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?
H5 页面设置了字体的粗细样式,但是在华为手机里微信打开访问样式不生效?
【批处理DOS-CMD-汇总】扩展变量-延迟变量cmd /v:on、cmd /v:off、setlocal enabledelayedexpansion、DisableDelayedExpansion
Array: question brushing record
2022 test questions and mock examinations for main principals of hazardous chemicals business units
Redisson uses the complete solution - redisson official documents + Notes (Part 1)
2022 electrician (intermediate) recurrent training question bank and answers
Basic knowledge of MATLAB
AUTOSAR learning record (1) – ECUM_ Init
Minecraft 1.16.5模组开发(五十一) 方块实体 (Tile Entity)
随机推荐
[MySQL learning notes27] stored procedure
2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) special operation certificate examination question bank simulated examination platform operation
【mysql学习笔记27】存储过程
Cyclic neural network
2022 electrician (intermediate) recurrent training question bank and answers
PostgreSQL source code learning (26) -- windows vscode remote debugging PostgreSQL on Linux
Todolist classic case ①
Scala language learning-07-constructor
Access报表实现小计功能
Redisson uses the complete solution - redisson official documents + Notes (Part 1)
web254
web254
十大劵商如何开户?另外,手机开户安全么?
Redisson uses the full solution - redisson official documents + comments (Part 2)
Implementation and encapsulation of go universal dynamic retry mechanism
Custom events of components ②
How to make the two financial transactions faster
Eigen矩阵运算库快速上手
Conscience Amway universal wheel SolidWorks model material website
Eigen matrix operation Library