Class: FMOD::System::StreamBuffer

Inherits:
Struct
  • Object
show all
Defined in:
lib/fmod/system.rb

Overview

The internal buffer size for streams opened after this call. Larger values will consume more memory, whereas smaller values may cause buffer under-run/starvation/stuttering caused by large delays in disk access (ie net-stream), or CPU usage in slow machines, or by trying to play too many streams at once.

Instance Attribute Summary collapse

Instance Attribute Details

#sizeInteger

The size of stream file buffer. Default is 16384.

Returns:

  • (Integer)

    the current value of size



89
90
91
# File 'lib/fmod/system.rb', line 89

def size
  @size
end

#typeInteger

Type of unit for stream file buffer size.

Returns:

  • (Integer)

    the current value of type

See Also:



89
90
91
# File 'lib/fmod/system.rb', line 89

def type
  @type
end