LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Sound

opSOUND ()

  • Memory file entry
  • Dispatch status unchanged

    Parameters
    (DATA8)CMD - Specific command Specific command parameter
    • CMD = BREAK

    • CMD = TONE
    (DATA8)VOLUME - Volume [0..100]
    (DATA16)FREQUENCY - Frequency [Hz]
    (DATA16)DURATION - Duration [mS]

    • CMD = PLAY
    (DATA8)VOLUME - Volume [0..100]
    (DATA8)NAME - First character in filename (character string)

    • CMD = REPEAT
    (DATA8)VOLUME - Volume [0..100]
    (DATA8)NAME - First character in filename (character string)


    opSOUND_TEST (BUSY)
  • Test if sound busy (playing file or tone
  • Dispatch status unchanged

    Returns
    (DATA8) BUSY - Sound busy flag (0 = ready, 1 = busy)

    opSOUND_READY ()

  • Wait for sound ready (wait until sound finished)
  • Dispatch status can change to BUSYBREAK