Changeset 3555
- Timestamp:
- Feb 14, 2013 6:01:19 AM (3 months ago)
- File:
-
- 1 edited
-
cpu/x86/pc/olpc/sound.fth (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/x86/pc/olpc/sound.fth
r3510 r3555 29 29 : louder ( -- ) 2 +volume ; 30 30 31 " int:\boot\jingle.wav" d# 128 config-string jingle 32 : sound-name$ ( -- adr len ) 33 jingle $file-exists? if 34 jingle 35 else 36 " rom:splash" 37 then 31 : sound-int? ( -- error? ) 32 " int:\boot\jingle.wav" ['] $play-wav catch dup if nip nip then 33 ; 34 35 : sound-rom? ( -- error? ) 36 " rom:splash" ['] $play-wav catch dup if nip nip then 37 ; 38 39 : (sound) 40 [ifdef] jffs2-support 41 sound-rom? drop \ jffs2 is very slow to mount 42 [else] 43 sound-int? if sound-rom? drop then 44 [then] 38 45 ; 39 46 … … 43 50 ['] load-started behavior >r 44 51 ['] noop to load-started 45 sound-name$ ['] $play-wav catch if 2drop then52 (sound) 46 53 r> to load-started 47 54 r> to playback-volume
Note: See TracChangeset
for help on using the changeset viewer.
