当前位置:网站首页>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();
边栏推荐
- LM08丨网格系列之网格反转(精)
- QT -- 1. QT connection database
- Custom events of components ②
- 【R语言】年龄性别频数匹配 挑选样本 病例对照研究,对年龄性别进行频数匹配
- The database is locked. Is there a solution
- Redisson uses the complete solution - redisson official documents + Notes (Part 1)
- Software testing methods and techniques - overview of basic knowledge
- Li Kou daily question - day 31 -202 Happy number
- How to get a SharePoint online site created using the office365 group template
- [untitled]
猜你喜欢
![[MySQL learning notes 25] SQL statement optimization](/img/01/cf0556961670bb43512caab8d5f4e5.png)
[MySQL learning notes 25] SQL statement optimization

SharePoint - modify web application authentication using PowerShell

Gru of RNN
![[recommendation system] breakthrough and imagination of deep location interactive network dpin for meituan takeout recommendation scenario](/img/10/ed857892d2e0ea72e100a4008e6d69.png)
[recommendation system] breakthrough and imagination of deep location interactive network dpin for meituan takeout recommendation scenario

Thesis learning -- Analysis and Research on similarity query of hydrological time series

图扑软件通过 CMMI5 级认证!| 国际软件领域高权威高等级认证

PWN攻防世界int_overflow

Android screen adaptation (using constraintlayout), kotlin array sorting

Redisson utilise la solution complète - redisson Documents officiels + commentaires (Partie 1)

TodoList经典案例①
随机推荐
The H5 page has set the font thickness style, but the wechat access style in Huawei mobile phone doesn't take effect?
Introduction to kubernetes resource objects and common commands (II)
Long way to go with technology
Conscience Amway universal wheel SolidWorks model material website
Atguigu---- scaffold --02- use scaffold (2)
[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions
Kickback -- find the first palindrome character in a group of characters
[R language] two /n data merge functions
Latex table
[R language] age sex frequency matching select samples for case-control study, and perform frequency matching on age and sex
长路漫漫、技术作伴
AArdio - 【问题】bass库回调时内存增长的问题
Insufficient executors to build thread pool
[untitled]
Gru of RNN
Li Kou daily question - day 31 -1790 Can a string exchange be performed only once to make two strings equal
图扑软件通过 CMMI5 级认证!| 国际软件领域高权威高等级认证
How to use layui to display the data in the database in the form of tables
漏刻有时API接口实战开发系列(14):身份证实名鉴权验证
base64