OS4 DepotLogo by invent 
(anonymous IP: 54.224.121.67,1134) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 
 Categories

   o Audio (328)
   o Datatype (47)
   o Demo (180)
   o Development (528)
   o Document (21)
   o Driver (87)
   o Emulation (141)
   o Game (852)
   o Graphics (456)
   o Library (88)
   o Network (200)
   o Office (56)
   o Utility (804)
   o Video (60)

Total files: 3848

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Utility » Misc » usbsound.lha

UsbSound

Description: Commodity for USB audio notification
Download: usbsound.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 68kb
Version: 1.0
Date: 21 Oct 15
Author: xenic
Submitter: xenic
Requirements: OS4 USB stack
Category: utility/misc
License: Freeware
Distribute: yes
Min OS Version: 4.1
FileID: 9521
 
Comments: 4
Snapshots: 0
Downloads: 106  (Current version)
106  (Accumulated)
Votes: 1 (0/0)  (30 days/7 days)

Show comments Show snapshots Show content Show crashlogs Replace file 
UsbSound 1.0 10/17/2015 Copyright 2015 by xenic

NAME:
  UsbSound - Add audio notification for insertion/removal of USB devices

SHELL FORMAT:
  UsbSound [INS|INSERTSOUND] <file> [REM|REMOVESOUND <file>]
           [HOT|HOTKEY <text>] [VOL|VOLUME <n>] [NOREM] [NOINS]
           [LOG] [QUIT]

SHELL TEMPLATE:
  INS=INSERTSOUND,REM=REMOVESOUND/K,VOL=VOLUME/N/K,
      NOREM/S,NOINS/S,LOG/S,QUIT/S

WORBENCH TOOLTYPES:
  INSERTSOUND=<filename>, REMOVESOUND=<filename>, VOLUME=<number>,
  HOTKEY=<text>, NOREM=<TRUE|FALSE>, NOINS=<TRUE|FALSE>, LOG=<TRUE|FALSE>

FUNCTION:
  UsbSound is a commodity that performs audio notification when a USB
  device is inserted into or removed from a USB port. There is a default
  internal notification sound which can be replaced using icon tooltypes
  or shell command line options. UsbSound uses datatypes for sound play.

  When UsbSound is executed in a shell it is synchronous and will not
  return to the command line until:
    1. The user enters Ctrl-C in the shell where UsbSound  was executed.
    2. UsbSound is removed using the "Exchange" commodity.
    3. The user enters "UsbSound quit" in another shell.
	4. The user enters the keyboard shortcut to open a quit requester and
        selects the "Remove" button.

  When UsbSound is executed by Workbench (usually WBStartup), actions 2
  through 4 listed above will remove and quit the UsbSound commodity.
  The QUIT switch is only available as a command line argument.

OPTIONS:
  INSERTSOUND - Name of a sound file (complete path) to be played when a
                USB device is inserted or removed.

  REMOVESOUND - Name of a sound file (complete path) to be played when a
                USB device is removed.

  VOLUME - A number that sets the volume of USB notification sounds. Valid
           values are between 1 and 64. Defaults to 64.

  HOTKEY - Sets a keyboard shortcut to open a quit (Remove) requester.
           Default hotkey is "ctrl alt z".

  NOINS - Switch that prevents audio notification when a USB device is
          inserted. Default is FALSE.

  NOREM - Switch that prevents audio notification when a USB device is
          removed. Default is FALSE.

  LOG - Switch that enables logging of events and errors to "T:usbsound.log".
        Default is FALSE.

  QUIT - Command line switch that cancels all currently activated USB audio
         notification and quits a currently running UsbSound commodity.

NOTES:
  If you want to run UsbSound from your user-startup you must run it in the
  background using: "run <NIL: >NIL: *>NIL: UsbSound" or "wbrun UsbSound".
  The recommended method for running UsbSound is WBStartup.


THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES SUCH AS
LOSS OF USE OR DATA.

THIS IS FREE SOFTWARE; USE IT AT YOUR OWN RISK.


Copyright (c) 2004-2017 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment