examples: add comment to piano example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a350ae9ee9
commit
d848d2e26e
1 changed files with 1 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ pub fn tick(
|
|||
app.play_after.lock();
|
||||
defer app.play_after.unlock();
|
||||
|
||||
// Play a new piano key sound
|
||||
const sound_id = try audio.buffers.new(.{
|
||||
.samples = try app.fillTone(audio, keyToFrequency(ev.key)),
|
||||
.channels = @intCast(audio.player.channels().len),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue