精易论坛

标题: BASS音频模块1.0 [打印本页]

作者: 奶糖肤质    时间: 2024-7-26 15:54
标题: BASS音频模块1.0
本帖最后由 奶糖肤质 于 2024-7-26 16:09 编辑

名称:BASS音频集成模块
说明:模块覆盖所有命令,包括所有常量值  结构不包含
      关于例子作者并没有写太多,本人电脑不支持以及系统其他因素,还请见谅。
      该模块风格与 libZPlay音频模块4 一致。      该帖子包含BASS官方帮助手册,以汉化。
版本:1.0(如有需求,更新待定)




网盘地址:https://mqq.lanzouj.com/b0cotdtcf          提取码:cxdw
网盘地址:https://www.123pan.com/s/XRolVv-nPM13.html 提取码:JG96
网盘地址:https://share.feijipan.com/s/JoBi7kKv      提取码:JG96

直接进入(推):https://share.feijipan.com/s/JoBi7kKv?code=JG96


2.jpg (80.16 KB, 下载次数: 1)

2.jpg

作者: Fate    时间: 2024-7-27 08:10
感谢分享
作者: wgqxj    时间: 2024-7-27 14:19
谢谢分享
作者: AliGod    时间: 2024-7-30 19:10
感谢分享
作者: anbuzz    时间: 2024-7-31 18:15
能否控制某个窗口或进程的音量以及是否静音?
作者: 李泽勇2    时间: 2024-8-2 08:22
大佬,你在源码区发帖马上会火起来,平时没几个人会逛模块区
作者: 李泽勇2    时间: 2024-8-2 09:37
1. format string can contain the following things:
       - plain text like "Some song". This text is merely copied to the output.
       - special identifier, beginning with '%' to substitute for the tag value:
         "%TITL"  - song title;
         "%ARTI"  - song artist;
         "%ALBM"  - album name;
         "%GNRE"  - song genre;
         "%YEAR"  - song/album year;
         "%CMNT"  - comment;
         "%TRCK"  - track number (may include total track count "track/total");
         "%COMP"  - composer;
         "%COPY"  - copyright;
         "%SUBT"  - subtitle;
         "%AART"  - album artist;
         "%DISC"  - disc number (may include total disc count "disc/total");
         "%PUBL"  - publisher/label;
       - expression:
         "%IFV1(x,a)" - if x is not empty, then this evaluates to a,
                        or to an empty string otherwise;
         "%IFV2(x,a,b)" - if x is not empty, then this evaluates to a,
                        else to b;
         "%IUPC(x)" - brings x to uppercase, so "%IUPC(foO)" yields "FOO";
         "%ILWC(x)" - brings x to lowercase, so "%ILWC(fOO)" yields "foo";
         "%ICAP(x)" - capitalizes first letter in each word of x, so
                      "%ICAP(FoO bAR)" yields "Foo Bar";
         "%ITRM(x)" - removes beginning and trailing spaces from x;

       - escaped symbols:
         "%%" - "%"
         "%(" - "("
         "%," - ","
         "%)" - ")"

       Example. Assume we have the following information in the tag:
             Title: "Nemo"
             Artist: "nightwish"
             Album: "Once"
             Track: "3"
             Year: "2004"
             
         Format string: "%IFV1(%TRCK,%TRCK. )%IFV2(%ARTI,%ICAP(%ARTI),no artist) - %IFV2(%TITL,%ICAP(%TITL) -,no title -) %IFV1(%ALBM,%IUPC(%ALBM))%IFV1(%YEAR, %(%YEAR%))"
         Output: "3.- Nightwish - Nemo - ONCE (2004)"

         if 'Artist' and 'Title' are empty, the output will be:
         "3. - no artist - no title - ONCE (2004)"

         if only 'Track' is empty, the output will be
         "Nightwish - Nemo - ONCE (2004)"

       Caution:
         "%IFV2(sometext ,a,b)" always evaluates to a, because a space after
         "sometext" causes the condition string to be not empty. This is
         intentional.

       Another caution:
         "symbols '%(,)' are reserved, that is, they must be escaped if they are
         inteded to appear in the output. See the above example: the parens
         around %YEAR are escaped with '%' to prevent misinterpretation.


使用bass网页下载的tags.dll插件也可以读取常用标签,解码能力还不错,乱七八糟编码都可以正常解析。
以下是我搞的一个例子。

%IFV2(%CMNT,%ICAP(%CMNT),a){-}%IFV2(%ARTI,%ICAP(%ARTI),b){-} %IFV2(%TITL,%ICAP(%TITL) ,c){-}%IFV2(%ALBM, %IUPC(%ALBM),d){-}%IFV2(%YEAR, %(%YEAR%),e){-}%IFV2(%TRCK,%ICAP(%TRCK),f){-}%IFV2(%GNRE,%ICAP(%GNRE),g)

作者: asd2168972    时间: 2024-8-3 21:09
我用的是DLL. 但凡你早发布个两年!
作者: fangweipeng    时间: 2024-8-13 14:43
感觉很复杂 和游戏引擎一样 逐个创建
作者: 淘宝2009    时间: 2024-8-15 11:08
不能播放网络请求回来的wav格式的字节集音频呢?只有写出到文件,稍后再用你的模块打开才能播放,请教一下是什么情况啊?
作者: 一直在沉默    时间: 2024-8-16 08:19
66666666666666666666666
作者: yjhack    时间: 2024-8-17 16:47
请问BASS可以调音高吗?就是升降调
作者: 奶糖肤质    时间: 2024-8-18 10:41
yjhack 发表于 2024-8-17 16:47
请问BASS可以调音高吗?就是升降调

查看例子
作者: 奶糖肤质    时间: 2024-8-18 10:42
淘宝2009 发表于 2024-8-15 11:08
不能播放网络请求回来的wav格式的字节集音频呢?只有写出到文件,稍后再用你的模块打开才能播放,请教一下 ...

自己用对象读取网络字节集数据,如果不会,在论坛搜索libZPlay音频4相关帖子,里面有源码
作者: ooonly    时间: 2024-9-2 21:00
感谢分享,很给力!~
作者: ddtbnbn    时间: 2024-9-16 17:31
感谢分享!!!
作者: candi    时间: 2024-9-23 22:16
感谢分享
作者: kenan236    时间: 2024-10-5 00:30
音乐插件很好
作者: 764693871    时间: 2024-10-5 10:13
一直播放内存一直涨有没有办法解决
作者: 烟花易冷心易碎    时间: 2024-10-14 18:31
大佬 小白一直搞不懂bass能不能实现变速不变调,看了大佬的变速例程也是改变速度会随之变调,有时间的话麻烦大佬看看能不能实现,跪谢!
作者: agasybin    时间: 2024-12-10 20:33
bass内存版
作者: 9skybug    时间: 2024-12-30 09:27
https://share.feijipan.com/s/JoBi7kKv?code=JG96
作者: 飞宇    时间: 2025-1-4 23:51
烟花易冷心易碎 发表于 2024-10-14 18:31
大佬 小白一直搞不懂bass能不能实现变速不变调,看了大佬的变速例程也是改变速度会随之变调,有时间的话麻 ...

有啊,有成品。。。
作者: yjhack    时间: 2025-2-21 15:40
本帖最后由 yjhack 于 2025-2-21 15:42 编辑

通道.置通道属性 (#BASS_ATTRIB_FREQ, 0)  ' 0=原始速率(创建通道时)
楼主你好,请问有属性可以改变音高而不改变速度吗,比如BASS_ATTRIB_TEMPO_PITCH这个音高属性





欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4