Short: Show informations about CDDA using CDDB.library (v1.2) Author: mrgruber@libero.it (Mario Roberto Gruber) Uploader: mrgruber libero it (Mario Roberto Gruber) Type: disk/cdrom Version: 1.2 Requires: OS 3.0, CDDB.library v44.21, cdplay.library v37.0 Architecture: m68k-amigaos _____________________________________________________________________________ Purpose of GIBing: GIBing is a CLI command that can be used to show all the informations about the currently played CDDA present in your cd-rom disk drive. It was mainly developed by me to enhance my irc rexx command, but can be easily used for what ever you want. Just take a look. Features: - can be used with every device that cdplay.library supports. (ex. scsi.device, atapi.device, etc.) - you can show a lot of things. - it uses a template file to store the layout for the output, so you can change it for your own needs. - It's free! (But check the licence conditions below.) _____________________________________________________________________________ Installation: - Open a CLI window and type: Echo "" NOLINE > ENVARC:GIBINGDEVICE Copy ENVARC:GIBINGDEVICE TO ENV: Echo "" NOLINE > ENVARC:GIBINGUNIT Copy ENVARC:GIBINGUNIT TO ENV: Replace and with the name and the unit used by your cd-rom disk drive. # Example: # Echo "atapi.device" NOLINE > ENVARC:GIBINGDEVICE # Copy ENVARC:GIBINGDEVICE TO ENV: # Echo "2" NOLINE > ENVARC:GIBINGUNIT # Copy ENVARC:GIBINGUNIT TO ENV: *** BEWARE *** Device name is case sensitive, so "atapi.device" is NOT equal *** to "AtApI.deVIce". Check your configuration before typing the line. - Copy GIBing in C: (or where ever you like). - Copy GIBing.prefs in ENVARC: (and in ENV:). (in this archive you'll find a GIBing.prefs.default file too... It simply doesn't use ESC codes to bold part of the output text) _____________________________________________________________________________ Synopsis: GIBing TEMPLATE,I=ISPLAYING/S,Q=QUIET/S TEMPLATE: GIBing will use this template file to show the informations. (default is ENV:GIBing.prefs) Available tags: %a = cd-rom device %b = cd-rom unit %c = artist %d = cd title %e = tracktitle %f = disc ID %g = current track position %h = complete track lenght %i = remaining track lenght %j = current track number %k = total track number %l = total CD lenght I=ISPLAYING/S: Shows the informations only if a track is playing. Q=QUIET/S: no error message will be displayed. _____________________________________________________________________________ Usage: Just type from CLI: GIBing ISPLAYING QUIET (of course, a CDDA must be present and played into your cd-rom disk drive) _____________________________________________________________________________ History: (1.2) - Added %l tag to show the total lenght of the CD (mm:ss) - Fixed a problem using the %f (disc ID) tag (the output wasn't correct if ID < 0x10000000) (1.1) - Rewrote the source. - Fixed a stack problem. - Now, if GIBing doesn't find the CD in your database, it will get the ID from the net if you are online. - Removed a lot of keywords. You don't need them anymore. - Now it is more simpler to use. - No more 255 chars limit for template file. - GIBing now is a resident program. The 'pure' bit is already set. - Now the prefs file can be placed wherever you want. By defaul GIBing will search for ENV:GIBing.prefs file. - Added GIBing.amirx and GIBingAmIRC.prefs to use GIBing with AmIRC; take a look to the GIBing.amirx file for installation information. (1.0) - This is the first release. _____________________________________________________________________________ Thanks: Craig 'Hercules' Daines who tested the exec and corrected this document ;) David 'Davar' Arbuthnot who tested the exec and for his patience :) _____________________________________________________________________________ The Program and the data in the archive are freely distributable under the restrictions stated below, but are also Copyright (c) Mario Gruber. Distribution of the program, the archive and the data in the Archive by a commercial organization without written permission from the author to any third party is prohibited if any payment is made in connection with such distribution, whether directly (as in payment for a copy of the Program) or indirectly (as in payment for some service related to the Program, or payment for some product or service that includes a copy of the Program "without charge"; these are only examples, and not an exhaustive enumeration of prohibited activities). However, the following methods of distribution involving payment shall not in and of themselves be a violation of this restriction: (i) Posting the program on a public access information storage and retrieval service for which a fee is received for retrieving information (such as an on-line service), provided that the fee is not content-dependent (i.e., the fee would be the same for retrieving the same volume of information consisting of random data). (ii) Distributing the Program on a CD-ROM, provided that:- a) The archive is reproduced entirely and verbatim on such CD-ROM, including especially this licence agreement; b) The CD-ROM is made available to the public for a nominal fee only, c) A copy of the CD is made available to the author for free except for shipment costs, and:- d) Provided further that all information on such CD-ROM is redistributable for non-commercial purposes without charge. Redistribution of a modified version of the Archive, the Program or the contents of the Archive is prohibited in any way, by any organization, regardless whether commercial or non-commercial. Everything must be kept together, in original and unmodified form. Limitations. THE PROGRAM IS PROVIDED TO YOU "AS IS", WITHOUT WARRANTY. THERE IS NO WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IF YOU DO NOT ACCEPT THIS LICENCE, YOU MUST DELETE THE PROGRAM, THE ARCHIVE AND ALL DATA OF THIS ARCHIVE FROM YOUR STORAGE SYSTEM. YOU ACCEPT THIS LICENCE BY USING OR REDISTRIBUTING THE PROGRAM. Mario Gruber _____________________________________________________________________________ Mario, April 2002