Changeset 3510


Ignore:
Timestamp:
Jan 4, 2013, 5:55:27 AM (23 months ago)
Author:
quozl
Message:

OLPC XO-1.75 - play sound from file on boot disk, #12128, due to lack of space in SPI FLASH

Location:
cpu
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/1.75/olpc.bth

    r3064 r3510  
    8383   " sourceurl"   " sourceurl"                    $add-dropin 
    8484 
    85    " ${BP}/cpu/x86/pc/olpc/images/Edge1-8k-EQ-Comp-Amp-Short.wav"  " splash"   $add-deflated-dropin 
     85   " ${BP}/cpu/x86/pc/olpc/images/Beep-Beep-800Hz-8k.wav"  " splash"   $add-deflated-dropin 
    8686 
    8787   " ec.img"                                     " ecimage.bin"    $add-deflated-dropin 
  • cpu/x86/pc/olpc/sound.fth

    r3049 r3510  
    2929: louder  ( -- )   2 +volume  ; 
    3030 
     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 
     38; 
     39 
    3140: sound  ( -- ) 
    3241   get-saved-volume  d# -50 <=  if  exit  then 
     
    3443   ['] load-started behavior  >r 
    3544   ['] noop to load-started 
    36    " rom:splash" ['] $play-wav catch  if  2drop  then 
     45   sound-name$ ['] $play-wav catch  if  2drop  then 
    3746   r> to load-started 
    3847   r> to playback-volume 
Note: See TracChangeset for help on using the changeset viewer.