Crates.io | playdate-sound |
lib.rs | playdate-sound |
version | 0.4.2 |
source | src |
created_at | 2023-09-08 13:00:44.531409 |
updated_at | 2024-07-13 08:14:30.007758 |
description | High-level sound API built on-top of Playdate API |
homepage | https://github.com/boozook/playdate |
repository | https://github.com/boozook/playdate.git |
max_upload_size | |
id | 967086 |
size | 98,320 |
High-level sound API built on-top of playdate-sys.
Covered parts of the sound API:
Not covered things:
⚠️ Prior to the version 0.3
API is unstable and can be changed without deprecation period.
use playdate_sound::sample::*;
use playdate_sound::player::sp::*;
use playdate_sound::player::Repeat;
let player = Player::<api::Cache>::new()?;
let sample = Sample::new_from_file("game_main_theme.pda")?;
player.set_sample(&sample);
player.play(Repeat::LoopsEndlessly, 1.0);
See more in examples.
This software is not sponsored or supported by Panic.