Giter VIP home page Giter VIP logo

yee_player's Introduction

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 音频解码与播放

yee_player's People

Contributors

yuhao7370 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.