Source (Русский)

Источник представляет аудио данные, которые вы можете воспроизвести. Вы можете сделать интересные вещи с источниками, например устанавливать громкость, шаг, и позицию по отношению к слушателю.

Конструкторы

love.audio.newSource Creates a new Source from a file, SoundData, or Decoder.

Функции

Body Bodies are objects with velocity and position.
Canvas Off-screen render target.
ChainShape A ChainShape consists of multiple line segments.
CircleShape Circle extends Shape and adds a radius and a local position.
Contact Contacts are objects created to manage collisions in worlds.
Data The superclass of all data.
Decoder An object which can gradually decode a sound file.
DistanceJoint Keeps two bodies at the same distance.
Drawable Superclass for all things that can be drawn on screen.
EdgeShape EdgeShape is a line segment.
File Represents a file on the filesystem.
FileData Data representing the contents of a file.
Fixture Fixtures attach shapes to bodies.
FontData A FontData represents a font.
Framebuffer Off-screen render target.
FrictionJoint A FrictionJoint applies friction to a body.
GearJoint Keeps bodies together in such a way that they act like gears.
GlyphData A GlyphData represents a drawable symbol of a font.
Image Drawable image type.
ImageData Raw (decoded) image data.
Joint Attach multiple bodies together to interact in unique ways.
MouseJoint For controlling objects with the mouse.
Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.
ParticleSystem Used to create cool effects, like fire.
PixelEffect Pixel shader effect.
PolygonShape Polygon is a convex polygon with up to 8 sides.
PrismaticJoint Restricts relative motion between Bodies to one shared axis.
PulleyJoint Allows you to simulate bodies connected through pulleys.
Quad A quadrilateral with texture coordinate information.
Rasterizer A Rasterizer represents font data and glyphs.
RevoluteJoint Allow two Bodies to revolve around a shared point.
RopeJoint Enforces a maximum distance between two points on two bodies.
Shape Shapes are objects used to control mass and collisions.
SoundData Contains raw audio samples.
Source A Source represents audio you can play back.
Source:getDirection Gets the direction of the Source.
Source:getDistance Returns the reference and maximum distance of the source.
Source:getPitch Gets the current pitch of the Source.
Source:getPosition Gets the position of the Source.
Source:getRolloff Returns the rolloff factor of the source.
Source:getVelocity Gets the velocity of the Source.
Source:getVolume Gets the current volume of the Source.
Source:getVolumeLimits Returns the volume limits of the source.
Source:isLooping Returns whether the Source will loop.
Source:isPaused Returns whether the Source is paused.
Source:isStatic Returns whether the Source is static.
Source:isStopped Returns whether the Source is stopped.
Source:pause Pauses a source.
Source:play Plays a source.
… further results

Смотрите также

Другие языки

Personal tools