Skip to content

EmitMovie

Narta Xaymar Dirks edited this page Nov 27, 2026 · 1 revision

EmitMovie BlitzLLVM

EmitMovie:Void movie:Int32, entity:Int32
Parameter Mode Type Default Description
movie In Int32 required A movie handle from OpenMovie.
entity In Int32 required The entity that the sound comes from, or 0 to play it on the speakers again.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Makes the sound of a movie come from an entity in the world, like EmitSound: it gets quieter with distance and moves between the speakers. With GetMovieTexture on a mesh this makes a screen in the world. This is a BlitzLLVM extension.

Differences

  • The sound of a movie gets no doppler shift: a change of pitch would play it faster or slower than the picture. ChannelDoppler on it is ignored. A movie without sound, or without a sound device, ignores the command.

Examples

Graphics3D 640, 480, 0, 2
camera = CreateCamera()
CreateListener camera
movie  = OpenMovie("advert.mp4")
LoopMovie movie
screen = CreateCube()
PositionEntity screen, 0, 0, 10
ScaleEntity screen, 4, 2.25, 0.1
EntityTexture screen, GetMovieTexture(movie)
EmitMovie movie, screen
ChannelRadius MovieChannel(movie), 2 ; the screen is 4 units wide

Related Commands

ChannelRadius BlitzLLVM, CreateListener Blitz3D, EmitSound Blitz3D, GetChannelDoppler BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally