Add sample-playing code

This commit is contained in:
Michal Moskal
2017-10-30 18:55:23 +00:00
parent a7795302fc
commit e25590539e
3 changed files with 85 additions and 10 deletions

View File

@ -38,9 +38,9 @@ declare interface Sound {
//% property shim=SoundMethods::buffer
buffer: Buffer;
/** Play sound with given volume. */
/** Play sound. */
//% promise shim=SoundMethods::play
play(volume: int32): void;
play(): void;
}
// Auto-generated. Do not edit. Really.