当前位置:网站首页>pygame音乐相关的功能实现
pygame音乐相关的功能实现
2022-06-23 03:55:00 【*程序小黑*】
pygame.mixer.music.load() —— 载入一个音乐文件用于播放
pygame.mixer.music.play() —— 开始播放音乐流
pygame.mixer.music.rewind() —— 重新开始播放音乐
pygame.mixer.music.stop() —— 结束音乐播放
pygame.mixer.music.pause() —— 暂停音乐播放
pygame.mixer.music.unpause() —— 恢复音乐播放
pygame.mixer.music.fadeout() —— 淡出的效果结束音乐播放
pygame.mixer.music.set_volume() —— 设置音量
pygame.mixer.music.get_volume() —— 获取音量
pygame.mixer.music.get_busy() —— 检查是否正在播放音乐
pygame.mixer.music.set_pos() —— 设置播放的位置
pygame.mixer.music.get_pos() —— 获取播放的位置
pygame.mixer.music.queue() —— 将一个音乐文件放入队列中,并排在当前播放的音乐之后
pygame.mixer.music.set_endevent() —— 当播放结束时发出一个事件
pygame.mixer.music.get_endevent() —— 获取播放结束时发送的事件
Pygame 中播放音乐的模块和 pygame.mixer 模块是密切联系的。使用音乐模块去控制在调音器上的音乐播放。
边栏推荐
- Web application security testing guide
- AMS:startActivity桌面启动应用
- STP summary
- The propeller framework v2.3 releases the highly reusable operator library Phi! Restructure development paradigm to reduce cost and increase efficiency
- How can functional testers spend one month to become advanced automation software test engineers
- Arduino flame sensor (with code)
- Beyond chips and AI, why is hard technology capital becoming more and more "hard core"?
- Missing essential plugin
- Penetration test basis | attached test points and test scenarios
- 大環境不好難找工作?三面阿裏,幸好做足了准備,已拿offer
猜你喜欢
随机推荐
UnityShader入门精要——Unity中的渲染优化技术(四)
PHP move_ uploaded_ File failed to upload mobile pictures
Drag and drop拖放框架
BGP experiment
大环境不好难找工作?三面阿里,幸好做足了准备,已拿offer
MVVM has become history, and Google has fully turned to MVI
(IntelliJ)插件一 Background Image Plus
Event日志关键字:EventLogTags.logtags
Difficult to find a job in a bad environment? Ali on three sides. Fortunately, he has made full preparations and has offered
Introduction to s file generated by TEQC for GNSS data quality analysis
Cookie-Session讲解
【opencv450】帧间差分法
[MAC] there is no source option in security and privacy
laravel8实现图片验证码
LeetCode 797:所有可能的路径
Brief ideas and simple cases of JVM tuning - why do you need JVM tuning?
Arduino火焰传感器(含代码)
Ams:startactivity desktop launch application
轮播图的实现
Strong push, quick start to software testing









