Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» [bug] CnVolumeCtrl.pas 在 delphi2007 下的两处错误
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: [bug] CnVolumeCtrl.pas 在 delphi2007 下的两处错误
qhbo
新警察
UID 16870
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2007-6-8
Status Offline
#1
Post at 2007-6-8 11:48
Profile
|
Blog
|
P.M.
[bug] CnVolumeCtrl.pas 在 delphi2007 下的两处错误
CnVolumeCtrl.pas 在 delphi2007 下的两处错误:
Line 1026 和 1197:
[Copy to clipboard]
CODE:
FVolume[1] := FVol + (FVol * Cardinal(iBalance)) div 32;
应该改为:
[Copy to clipboard]
CODE:
FVolume[1] := FVol - (FVol * Cardinal(-iBalance)) div 32;
未修改前的错误会导致 setBalance(负数)时不起作用,因为 Cardinal(-1) 是一个相当大的数。
修改后,经测试正常. 版本号为:20061001
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2007-6-9 09:27
Profile
|
Blog
|
P.M.
应该是这样。
小冬有空确认一下?
kendling
(小冬)
高级版主
MyvNet
UID 703
Digest Posts
5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
#3
Post at 2007-6-12 10:10
Profile
|
Site
|
Blog
|
P.M.
|
|
请问楼主是否在CVS里拿的最新代码,如果是网站上下的控件包代码比较旧。麻烦你下CVS里最新的代码试试。
CnVolumeCtrl之前的确出现过这样的问题,设置为负数时音量会乱跳,不过后来修复过了。
小冬
http://MyvNet.com
kendling
(小冬)
高级版主
MyvNet
UID 703
Digest Posts
5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
#4
Post at 2007-6-12 11:10
Profile
|
Site
|
Blog
|
P.M.
|
|
刚才详细测试了一下,确实还存在一些问题。现在已经修复了。麻烦你从CVS更新最新的代码测试一下。
刚好在测试你的问题的时候发现另外一个小问题,就是把音量设为0后会丢失左右平行,现已修复。
小冬
http://MyvNet.com
qhbo
新警察
UID 16870
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2007-6-8
Status Offline
#5
Post at 2007-6-12 21:59
Profile
|
Blog
|
P.M.
谢谢.
我之前测试的是在网站首页下载的:
CnPack组件包 20061001
. 准备再从cvs 上抓一个看看,谢谢你们.
kendling
(小冬)
高级版主
MyvNet
UID 703
Digest Posts
5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
#6
Post at 2007-6-15 09:12
Profile
|
Site
|
Blog
|
P.M.
|
|
首页下的控件包可能比较旧。
小冬
http://MyvNet.com
tanm123
新警察
UID 17477
Digest Posts 0
Credits 42
Posts 21
点点分 42
Reading Access 10
Registered 2007-6-14
Location 江西九江
Status Offline
#7
Post at 2007-6-16 16:19
Profile
|
Blog
|
P.M.
|
最新的在哪啊?
kendling
(小冬)
高级版主
MyvNet
UID 703
Digest Posts
5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
#8
Post at 2007-6-18 18:52
Profile
|
Site
|
Blog
|
P.M.
|
|
最新代码在CVS里,关于如何从CVS下载最新代码可以到网站上找找相关教程。
小冬
http://MyvNet.com
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 13:16
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.011536 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats