| 1 | package org.farng.mp3.id3; |
| 2 | |
| 3 | import org.farng.mp3.InvalidTagException; |
| 4 | |
| 5 | import java.io.RandomAccessFile; |
| 6 | |
| 7 | /** |
| 8 | * The 'Media type' frame describes from which media the sound<br> originated. This may be a |
| 9 | * text string or a reference to the<br> predefined media types found in the list below. Example:<br> |
| 10 | * "VID/PAL/VHS" $00.</p> |
| 11 | * <p/> |
| 12 | * <p> DIG Other digital media<br> |
| 13 | * /A Analogue transfer from media</p> |
| 14 | * <p/> |
| 15 | * <p> ANA Other analogue media<br> |
| 16 | * <p/> |
| 17 | * /WAC Wax cylinder<br> /8CA 8-track tape |
| 18 | * cassette</p> |
| 19 | * <p/> |
| 20 | * <p> CD CD<br> |
| 21 | * <p/> |
| 22 | * /A Analogue transfer from media<br> |
| 23 | * /DD DDD<br> /AD ADD<br> |
| 24 | * <p/> |
| 25 | * /AA AAD</p> |
| 26 | * <p/> |
| 27 | * <p> LD Laserdisc</p> |
| 28 | * <p/> |
| 29 | * <p> TT Turntable records<br> |
| 30 | * <p/> |
| 31 | * /33 33.33 rpm<br> |
| 32 | * /45 45 rpm<br> /71 71.29 rpm<br> |
| 33 | * <p/> |
| 34 | * /76 76.59 rpm<br> |
| 35 | * /78 78.26 rpm<br> /80 80 rpm</p> |
| 36 | * <p/> |
| 37 | * <p> MD MiniDisc<br> /A |
| 38 | * Analogue transfer from media</p> |
| 39 | * <p/> |
| 40 | * <p> DAT DAT<br> |
| 41 | * <p/> |
| 42 | * /A Analogue transfer from media<br> |
| 43 | * /1 standard, 48 kHz/16 bits, linear<br> /2 mode 2, |
| 44 | * 32 kHz/16 bits, linear<br> |
| 45 | * <p/> |
| 46 | * /3 mode 3, 32 kHz/12 bits, non-linear, low speed<br> |
| 47 | * /4 mode 4, 32 kHz/12 bits, 4 channels<br> |
| 48 | * /5 mode 5, 44.1 kHz/16 bits, linear<br> |
| 49 | * <p/> |
| 50 | * /6 mode 6, 44.1 kHz/16 bits, 'wide track' play</p> |
| 51 | * <p/> |
| 52 | * <p> DCC DCC<br> /A Analogue |
| 53 | * transfer from media</p> |
| 54 | * <p/> |
| 55 | * <p> DVD DVD<br> /A Analogue |
| 56 | * transfer from media</p> |
| 57 | * <p/> |
| 58 | * <p> TV Television<br> |
| 59 | * <p/> |
| 60 | * /PAL PAL<br> /NTSC |
| 61 | * NTSC<br> /SECAM SECAM</p> |
| 62 | * <p/> |
| 63 | * <p> VID Video<br> /PAL PAL<br> |
| 64 | * /NTSC NTSC<br> |
| 65 | * <p/> |
| 66 | * /SECAM SECAM<br> /VHS VHS<br> |
| 67 | * /SVHS S-VHS<br> |
| 68 | * <p/> |
| 69 | * /BETA BETAMAX</p> |
| 70 | * <p/> |
| 71 | * <p> RAD Radio<br> /FM FM<br> |
| 72 | * <p/> |
| 73 | * /AM AM<br> /LW LW<br> |
| 74 | * /MW MW</p> |
| 75 | * <p/> |
| 76 | * <p> TEL Telephone<br> /I |
| 77 | * ISDN</p> |
| 78 | * <p/> |
| 79 | * <p> MC MC (normal cassette)<br> |
| 80 | * <p/> |
| 81 | * /4 4.75 cm/s (normal speed for a two sided cassette)<br> |
| 82 | * /9 9.5 cm/s<br> /I |
| 83 | * Type I cassette (ferric/normal)<br> |
| 84 | * <p/> |
| 85 | * /II Type II cassette (chrome)<br> |
| 86 | * /III Type III cassette (ferric chrome)<br> /IV Type IV cassette |
| 87 | * (metal)</p> |
| 88 | * <p/> |
| 89 | * <p> REE Reel<br> /9 9.5 cm/s<br> |
| 90 | * /19 19 cm/s<br> |
| 91 | * <p/> |
| 92 | * /38 38 cm/s<br> /76 76 cm/s<br> |
| 93 | * /I Type I cassette (ferric/normal)<br> |
| 94 | * <p/> |
| 95 | * /II Type II cassette (chrome)<br> |
| 96 | * /III Type III cassette (ferric chrome)<br> /IV Type IV cassette |
| 97 | * (metal)</p> |
| 98 | * |
| 99 | * @author Eric Farng |
| 100 | * @version $Revision: 1.4 $ |
| 101 | */ |
| 102 | public class FrameBodyTMED extends AbstractFrameBodyTextInformation { |
| 103 | |
| 104 | /** |
| 105 | * Creates a new FrameBodyTMED object. |
| 106 | */ |
| 107 | public FrameBodyTMED() { |
| 108 | super(); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Creates a new FrameBodyTMED object. |
| 113 | */ |
| 114 | public FrameBodyTMED(final FrameBodyTMED body) { |
| 115 | super(body); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Creates a new FrameBodyTMED object. |
| 120 | */ |
| 121 | public FrameBodyTMED(final byte textEncoding, final String text) { |
| 122 | super(textEncoding, text); |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Creates a new FrameBodyTMED object. |
| 127 | */ |
| 128 | public FrameBodyTMED(final RandomAccessFile file) throws java.io.IOException, InvalidTagException { |
| 129 | super(file); |
| 130 | } |
| 131 | |
| 132 | public String getIdentifier() { |
| 133 | return "TMED"; |
| 134 | } |
| 135 | } |