From 696ab0aadc346f1046f35419a558c291097c521f Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 22 Nov 2025 00:12:34 -0500 Subject: audio: add temp changing --- graphics/src/audio/parse/lex.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'graphics/src/audio/parse/lex.rs') diff --git a/graphics/src/audio/parse/lex.rs b/graphics/src/audio/parse/lex.rs index f2500da..a349c53 100644 --- a/graphics/src/audio/parse/lex.rs +++ b/graphics/src/audio/parse/lex.rs @@ -13,6 +13,7 @@ pub enum Token { LineSeparator, Pause(usize), Jump(usize), + Tempo(u32), ChanSpec(ChanSpec), SetVolume(u8), SetPitch(u8), @@ -96,11 +97,11 @@ impl<'s> Lexer<'s> { }?; let off = match self.peek()? { - 's' => { + '#' => { self.next()?; 1 } - 'f' => { + 'b' => { self.next()?; -1 } @@ -178,6 +179,8 @@ impl<'s> Lexer<'s> { '-' => self.next_pause()?, // jump 'j' => T::Jump(self.next_int()?), + // tempO + 'o' => T::Tempo(self.next_int()?), // eof '\0' => T::Eof, // new line -- cgit v1.2.3-freya