Package com.digimarc.dms.readers.audio
Class AudioReader.Builder
java.lang.Object
com.digimarc.dms.readers.audio.AudioReader.Builder
- Enclosing class:
- AudioReader
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a reader using the settings specified.setChannelCount(int channels) setReaderOptions(ReaderOptions options) Set of options that this reader will use.setSampleRate(int sampleRate) setSymbologies(int symbologyMask) Set the symbologies that this reader will detect.
-
Method Details
-
setSymbologies
Set the symbologies that this reader will detect.- Parameters:
symbologyMask- A bitmask value containing the audio symbologies that the reader should use.- Returns:
- Builder
-
setReaderOptions
Set of options that this reader will use.- Parameters:
options- A dictionary of flags and settings for the reader. The available entries are documented separately.- Returns:
- Builder
-
setSampleRate
- Parameters:
sampleRate- Audio sample rate of the incoming data.- Returns:
- Builder
-
setChannelCount
- Parameters:
channels- Number of audio channels in the incoming data.- Returns:
- Builder
-
build
Build a reader using the settings specified.- Returns:
- A new reader object
- Throws:
ReaderException- An exception will be thrown if an invalid symbology (i.e. not inBaseReader.AudioSymbology) or options entry is specified for this reader. An exception will also be thrown if a valid Sdk Session key is not available.
-