FileDocCategorySizeDatePackage
AppleTempBox.javaAPI Docmp4parser 1.0-RC-17682Wed Dec 19 20:10:37 GMT 2012com.coremedia.iso.boxes.apple

AppleTempBox

public final class AppleTempBox extends AbstractAppleMetaDataBox
Beats per minute.

Fields Summary
public static final String
TYPE
Constructors Summary
public AppleTempBox()



      
        super(TYPE);
        appleDataBox = AppleDataBox.getUint16AppleDataBox();
    
Methods Summary
public intgetTempo()

        return appleDataBox.getData()[1];
    
public voidsetTempo(int tempo)

        appleDataBox = new AppleDataBox();
        appleDataBox.setVersion(0);
        appleDataBox.setFlags(21);
        appleDataBox.setFourBytes(new byte[4]);
        appleDataBox.setData(new byte[]{0, (byte) (tempo & 0xFF)});