| 1 | |
package org.jaudiotagger.audio.mp4; |
| 2 | |
|
| 3 | |
import org.jaudiotagger.audio.generic.GenericAudioHeader; |
| 4 | |
import org.jaudiotagger.audio.mp4.atom.Mp4EsdsBox; |
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | 406 | public class Mp4AudioHeader extends GenericAudioHeader |
| 10 | |
{ |
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
public final static String FIELD_KIND = "KIND"; |
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
public final static String FIELD_PROFILE = "PROFILE"; |
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
public final static String FIELD_BRAND = "BRAND"; |
| 32 | |
|
| 33 | |
public void setKind(Mp4EsdsBox.Kind kind) |
| 34 | |
{ |
| 35 | 385 | content.put(FIELD_KIND, kind); |
| 36 | 385 | } |
| 37 | |
|
| 38 | |
|
| 39 | |
|
| 40 | |
|
| 41 | |
public Mp4EsdsBox.Kind getKind() |
| 42 | |
{ |
| 43 | 31 | return (Mp4EsdsBox.Kind) content.get(FIELD_KIND); |
| 44 | |
} |
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
|
| 50 | |
|
| 51 | |
public void setProfile(Mp4EsdsBox.AudioProfile profile) |
| 52 | |
{ |
| 53 | 385 | content.put(FIELD_PROFILE, profile); |
| 54 | 385 | } |
| 55 | |
|
| 56 | |
|
| 57 | |
|
| 58 | |
|
| 59 | |
public Mp4EsdsBox.AudioProfile getProfile() |
| 60 | |
{ |
| 61 | 31 | return (Mp4EsdsBox.AudioProfile) content.get(FIELD_PROFILE); |
| 62 | |
} |
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
|
| 67 | |
public void setBrand(String brand) |
| 68 | |
{ |
| 69 | 406 | content.put(FIELD_BRAND, brand); |
| 70 | 406 | } |
| 71 | |
|
| 72 | |
|
| 73 | |
|
| 74 | |
|
| 75 | |
|
| 76 | |
public String getBrand() |
| 77 | |
{ |
| 78 | 0 | return (String) content.get(FIELD_BRAND); |
| 79 | |
} |
| 80 | |
|
| 81 | |
|
| 82 | |
} |