org.ocap.hn.content
Interface AudioResource

All Superinterfaces:
ContentResource

public interface AudioResource
extends ContentResource

Interface implemented by subclasses of ContentResource to identify that a content contains audio.


Field Summary
 
Fields inherited from interface org.ocap.hn.content.ContentResource
UNKNOWN_MIME_TYPE
 
Method Summary
 int getBitsPerSample()
          Returns the number of bits per sample or -1 if not known.
 String[] getLanguages()
          Returns an array of languages associated with this audio content or a zero length array if not known.
 int getNumberOfChannels()
          Returns the number of audio channels, for example, 1 for mono, 2 for stereo, 6 for DTS 5.1 and 7 for DTS 6.1
 int getSampleFrequency()
          Returns the sample frequency in Hz of this audio content or -1 if not known.
 
Methods inherited from interface org.ocap.hn.content.ContentResource
delete, getContentFormat, getContentItem, getContentSize, getCreationDate, getExtendedFileAccessPermissions, getLocator, getNetwork, getProtocol, getResourceProperty, isRenderable
 

Method Detail

getSampleFrequency

int getSampleFrequency()
Returns the sample frequency in Hz of this audio content or -1 if not known.

Returns:
the sample frequency of the content of -1 if not known.

getNumberOfChannels

int getNumberOfChannels()
Returns the number of audio channels, for example, 1 for mono, 2 for stereo, 6 for DTS 5.1 and 7 for DTS 6.1

Returns:
the sample frequency of the content of -1 if not known.

getBitsPerSample

int getBitsPerSample()
Returns the number of bits per sample or -1 if not known.

Returns:
the number of bits per sample or -1 if not known.

getLanguages

String[] getLanguages()
Returns an array of languages associated with this audio content or a zero length array if not known.

Returns:
the languages associated with this audio


Copyright © 2011. All Rights Reserved.