Decoder:getSampleRate

Decoder:getSampleRate Returns the sample rate of the Decoder. Function Synopsis rate = Decoder:getSampleRate( ) Arguments None. Returns number rate Number of samples per second. See Also Decoder

Decoder:getChannels

Decoder:getChannels Returns the number of channels in the stream. Function Synopsis channels = Decoder:getChannels( ) Arguments None. Returns number channels 1 for mono, 2 for stereo. See Also Decoder

Decoder:getBits

Decoder:getBits Removed in LÖVE 0.9.0 It has been renamed to Decoder:getBitDepth. Returns the number of bits per sample. Function Synopsis bitSize = Decoder:getBits( ) Arguments None. Returns number bitSize Either 8, or 16. See Also Decoder

Decoder:getBitDepth

Decoder:getBitDepth Available since LÖVE 0.9.0 It has been renamed from Decoder:getBits. Returns the number of bits per sample. Function Synopsis bitDepth = Decoder:getBitDepth( ) Arguments None. Returns number bitDepth Either 8, or 16. See Also Decoder

Data:getString

Data:getString Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the full Data as a string. Function Synopsis data = Data:getString( ) Arguments None. Returns string data The raw data. See Also Data

Data:getSize

Data:getSize Gets the Data's size in bytes. Function Synopsis size = Data:getSize( ) Arguments None. Returns number size The size of the Data in bytes. See Also Data

Data:getPointer

Data:getPointer Gets a pointer to the Data. Can be used with libraries such as LuaJIT's FFI. Use at your own risk. Directly reading from and writing to the raw memory owned by the Data will bypass any safety checks and thread-safety the Data might normally have. Function Synopsis pointer = Data:getPointer( ) Arguments None. Returns light userdata pointer A raw pointer to the Data. See Also Data Data:getSize Data:getString

Cursor:getType

Cursor:getType Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the type of the Cursor. Function Synopsis ctype = Cursor:getType( ) Arguments None. Returns CursorType ctype The type of the Cursor. See Also Cursor

Contact:setFriction

Contact:setFriction Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the contact friction. Function Synopsis Contact:setFriction( friction ) Arguments number friction The contact friction. Returns Nothing. See Also Contact

Contact:setRestitution

Contact:setRestitution Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the contact restitution. Function Synopsis Contact:setRestitution( restitution ) Arguments number restitution The contact restitution. Returns Nothing. See Also Contact