Skip to content

OTOMariK/yee_player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yee Player

simple music player written in Rust

使用Rust编写的简易音乐播放器

Feature 功能

  • audio loading and playing 音频加载与播放
  • playing audio at any speed 任意速度播放音频
  • looping 循环播放

Usage 使用方法

play/pause button and reverse button will changed the playback speed to acheive their function

播放/暂停按钮倒放按钮 通过改变播放速度来实现其功能

load setting button will read asset/setting/setting.ron to reload the setting

加载设置按钮会读取asset/setting/setting.ron以重新加载设置

this program will load the whole audio data into memory, loading long audio file may crash

本程序将加载整个音频数据到内存中,加载过长的音频文件可能会导致崩溃

Setting 设置

you can change some setting by editing asset/setting/setting.ron

你可以在asset/setting/setting.ron文件中修改程序的一些设置

feilds of setting.ron:

setting.ron中的参数:

// path to your music file  音乐文件路径
music_path: String
// width of the window  窗口的宽度
window_width: f32
// height of the window  窗口的高度
window_height: f32
// max playback speed when moving the speed slider  移动速度滑块时可以调节的最大播放速度
max_play_speed: f32
// min playback speed when moving the speed slider  移动速度滑块时可以调节的最低播放速度
min_play_speed: f32

Main Dependencies 主要依赖库

this project mainly uses the following crates

本工程主要使用了以下库

  • winit: input handling and window creating 处理用户输入以及创建窗口

  • wgpu: graphics rendering 图像渲染

  • legion: logic construction 逻辑处理

  • rodio: audio decoding and playing 音频解码与播放

About

simple music player written in Rust 使用Rust编写的简易音乐播放器

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages