Eiffel Media API
Overview Cluster Class Classes Index      Previous Next      Top Features

em.audio

Class EM_AUDIO_STREAM


Direct ancestors

SDL_MIXER_FUNCTIONS, VOID_VOIDP_UINT8P_INT_ANONYMOUS_CALLBACK_CALLBACK

Known direct descendants

EM_AUDIO_MOVIE_STREAM

Features

Invariants

indexing

description

Deferred class for audio streaming.

Inherit from this class if you're implementing another stream.
The hook_music_function will be called whenever the player needs
sound data.

date

$Date: 2005/10/22 13:22:42 $

revision

$Revision: 1.6 $

deferred class

EM_AUDIO_STREAM

feature -- Callback

hook_music_function (a_userdata: POINTER; a_stream: POINTER; a_length: INTEGER)

-- Function called when player need sound data.
--
-- Fill a_stream with up to a_length bytes of sound.
--
-- a_userdata may hold additional data passed in by the user
-- when stream was created.
--
-- Note: a_stream has to be filled corresponding to the mixer settings.
-- Otherwise, music may and will sound funny.

-- (From VOID_VOIDP_UINT8P_INT_ANONYMOUS_CALLBACK_CALLBACK)

music_hook_data: POINTER

-- Actual stream data from player

invariant


-- From ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)

end