| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ChannelTypes |
|
| 1.5;1.5 |
| 1 | /** | |
| 2 | * @author : Paul Taylor | |
| 3 | * <p/> | |
| 4 | * Version @version:$Id: ChannelTypes.java,v 1.3 2007/08/06 16:04:36 paultaylor Exp $ | |
| 5 | * <p/> | |
| 6 | * Jaudiotagger Copyright (C)2004,2005 | |
| 7 | * <p/> | |
| 8 | * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser | |
| 9 | * General Public License as published by the Free Software Foundation; either version 2.1 of the License, | |
| 10 | * or (at your option) any later version. | |
| 11 | * <p/> | |
| 12 | * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even | |
| 13 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 14 | * See the GNU Lesser General Public License for more details. | |
| 15 | * <p/> | |
| 16 | * You should have received a copy of the GNU Lesser General Public License ainteger with this library; if not, | |
| 17 | * you can get a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software | |
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 19 | * <p/> | |
| 20 | * Description: | |
| 21 | * Channel type used by | |
| 22 | */ | |
| 23 | package org.jaudiotagger.tag.id3.valuepair; | |
| 24 | ||
| 25 | import org.jaudiotagger.tag.datatype.AbstractIntStringValuePair; | |
| 26 | ||
| 27 | public class ChannelTypes extends AbstractIntStringValuePair | |
| 28 | { | |
| 29 | private static ChannelTypes channelTypes; | |
| 30 | ||
| 31 | public static ChannelTypes getInstanceOf() | |
| 32 | { | |
| 33 | 0 | if (channelTypes == null) |
| 34 | { | |
| 35 | 0 | channelTypes = new ChannelTypes(); |
| 36 | } | |
| 37 | 0 | return channelTypes; |
| 38 | } | |
| 39 | ||
| 40 | private ChannelTypes() | |
| 41 | 0 | { |
| 42 | 0 | idToValue.put(0x00, "Other"); |
| 43 | 0 | idToValue.put(0x01, "Master volume"); |
| 44 | 0 | idToValue.put(0x02, "Front right"); |
| 45 | 0 | idToValue.put(0x03, "Front left"); |
| 46 | 0 | idToValue.put(0x04, "Back right"); |
| 47 | 0 | idToValue.put(0x05, "Back left"); |
| 48 | 0 | idToValue.put(0x06, "Front centre"); |
| 49 | 0 | idToValue.put(0x07, "Back centre"); |
| 50 | 0 | idToValue.put(0x08, "Subwoofer"); |
| 51 | ||
| 52 | 0 | createMaps(); |
| 53 | 0 | } |
| 54 | } |