public void setMaxFileSizeInBytes(final long maxFileSizeInBytes){
        if (maxFileSizeInBytes<1000 || maxFileSizeInBytes> PcmWavConverter.MAX_SIZE_WAV_FILE_BYTES){
            throw new IllegalArgumentException("Invalid max file size given");
        }
        if (currentAudioState.get()!=PREPARED_STATE && currentAudioState.get()!=INITIALIZED_STATE ){
            throw new IllegalStateException("Cannot modify max file size during a non-prepared and non-initialized state");
        }
        this.maxFileSizeInBytes=maxFileSizeInBytes;
    }
public void setMaxFileSizeInBytes ( final long maxFileSizeInBytes ) { if ( maxFileSizeInBytes < 1000 || maxFileSizeInBytes > PcmWavConverter . MAX_SIZE_WAV_FILE_BYTES ) { throw new IllegalArgumentException ( "Invalid max file size given" ) ; } if ( currentAudioState . get ( ) != PREPARED_STATE && currentAudioState . get ( ) != INITIALIZED_STATE ) { throw new IllegalStateException ( "Cannot modify max file size during a non-prepared and non-initialized state" ) ; } this . maxFileSizeInBytes = maxFileSizeInBytes ; }
Sets the max file size (in bytes) default value is {@link PcmWavConverter}.MAX_SIZE_WAV_FILE_BYTES. Files will not go over that limit, but will stop slightly below it.
@param maxFileSizeInBytes The maximum allowed file size in bytes. Must be greater than or equal to 1kb and less than or equal to {@link PcmWavConverter}.MAX_SIZE_WAV_FILE_BYTES