AESAudioMetadata.Face f = (AESAudioMetadata.Face) facelist.get(0); faceAttrs[0] [1] = f.getDirection(); _writer.println (margn2 + elementStart ("aes:face", faceAttrs)); AESAudioMetadata.TimeDesc startTime = f.getStartTime(); if (startTime != null) { _writer.println (margn3 + elementStart ("aes:timeline")); writeAESTimeRange (margn3, startTime, f.getDuration()); _writer.println (margn3 + elementEnd ("aes:timeline")); AESAudioMetadata.FaceRegion facergn = f.getFaceRegion (0); _writer.println (margn3 + elementStart ("aes:region", faceRegionAttrs)); _writer.println (margn4 + elementStart ("aes:timeRange"));
/** Adds a Face. */ public void addFace () { _curFace = new FaceImpl (); _faceList.add (_curFace); _curFace.addFaceRegion(); }
new DefaultMutableTreeNode ("TimeLine", true); AESAudioMetadata.TimeDesc startTime = f.getStartTime(); if (startTime != null) { addAESTimeRange (timeline, startTime, f.getDuration ()); DefaultMutableTreeNode region = new DefaultMutableTreeNode ("Region", true); timeline = new DefaultMutableTreeNode ("TimeRange", true);
_writer.println (margn2 + "Face: "); _writer.println (margn3 + "TimeLine: "); AESAudioMetadata.TimeDesc startTime = f.getStartTime(); if (startTime != null) { writeAESTimeRange (margn3, startTime, f.getDuration());
/** Sets the array of channel map locations. The length * of the array must equal the number of channels. */ public void setMapLocations (String[] locations) { _curFace.getFaceRegion(0).setMapLocations (locations); }
/** Returns the names of the map locations. * The returned * value is an array whose length equals the number of * channels and whose elements correspond to channels 0, 1, * etc. */ public String[] getMapLocations() { return _curFace.getFaceRegion(0).getMapLocations(); }
/** Sets the start time in samples. * This affects the current face and its first FaceRegion. */ public void setStartTime (long samples) { _curFace.setStartTime (samples); _curFace.getFaceRegion(0).setStartTime (samples); }
/** Sets the direction. * This must be one of the values * FORWARD, REVERSE, A_WIND, B_WIND, C_WIND, D_WIND, * FRONT, BACK. FORWARD may be the only one that * makes sense for digital formats. */ public void setDirection (String direction) { _curFace.setDirection (direction); }
/** Sets the duration in samples. * This affects the current face and its first FaceRegion. */ public void setDuration (long duration) { _curFace.setDuration (duration); _curFace.getFaceRegion(0).setDuration (duration); }