The setProperties( ) method sets the following attributes automatically for certain audio formats: format, encoding, numberOfChannels, samplingRate, sampleSize, compressionType, and audioDuration. Use this method only if you are not using the setProperties( ) method. This method sets only the specified attribute values; it does not modify the audio data itself.

Parameters

format

The new attribute value, as a String.

encoding

The new attribute value, as a String.

numberOfChannels

The new attribute value, as an integer.

samplingRate

The new attribute value, as an integer.

sampleSize

The new attribute value, as an integer.

compressionType

The new attribute value, as a String.

audioDuration

The new attribute value, as an integer.

Return Value

None.

Exceptions

java.sql.SQLException

This exception is thrown if an error occurs executing the corresponding setKnownAttributes( ) method in the database.