note description: "An AUDIO_SOUND used to stream audio buffers" author: "Louis Marchand" date: "Fri, 16 Jun 2017 16:13:44 +0000" revision: "0.1" class interface AUDIO_SOUND_STREAMING create make feature --Access playing_queue: QUEUE [MANAGED_POINTER] -- Every buffer to play. finish -- Terminate the streaming (after emptying playing_queue) queue_buffer (a_buffer: MANAGED_POINTER) -- Add a_buffer os size a_size in the playing queue Is_openable: BOOLEAN = True -- Can Current be open open -- Do nothing close -- Do nothing channel_count: INTEGER_32 -- Get the channel number of Current (1=mono, 2=stereo, etc.). frequency: INTEGER_32 -- Get the frequency (sample rate) of Current. bits_per_sample: INTEGER_32 -- Get the bit resolution of one frame of Current. is_signed: BOOLEAN -- True if the frames in the buffer are signed. Is_seekable: BOOLEAN = False -- Return true if Current support the seek functionnality. sample_position: INTEGER_64 -- The number of frames since the beginning of Current restart -- Can be use to unfinished Current sample_seek (a_frame_number: INTEGER_64) -- Seek at the frame a_frame_number from the beginning of Current Sample_count: INTEGER_64 = 0 -- Impossible to calculate feature -- Implementation already_used_buffer: INTEGER_32 -- The number of byte already used in the top item of playing_queue must_finish: BOOLEAN -- The finish has been called invariant already_used_buffer_valid: already_used_buffer > 0 implies playing_queue.count > 0 end -- class AUDIO_SOUND_STREAMING
Generated by ISE EiffelStudio