C# Class cadencii.media.WavePlay

Datei anzeigen Open project: cadencii/cadencii

Public Methods

Method Description
WavePlay ( int block_size, int sample_rate ) : System
abort ( ) : void
append ( float data, uint length, double amp_left, double amp_right ) : void
change_block_size ( int block_size ) : bool
flush_and_exit ( double amp_left, double amp_right ) : void
get_play_time ( ) : float
is_alive ( ) : bool
on_your_mark ( string files, long wave_read_offset_samples ) : int
reset ( ) : void
set_error_samples ( int error_samples ) : void
set_first_buffer_written_callback ( FirstBufferWrittenCallback proc ) : void
terminate ( ) : void

Private Methods

Method Description
MAKELONG ( ushort a, ushort b ) : uint
WavePlay ( ) : System
append_cor ( float a_data, uint length, double amp_left, double amp_right, bool is_last_mode ) : void
mix ( int processed_count, float amp_left, float amp_right ) : void
util_get_errmsg ( uint msg ) : string
wave_callback ( IntPtr hwo, uint uMsg, uint dwInstance, uint dwParam1, uint dwParam2 ) : void

Method Details

WavePlay() public method

public WavePlay ( int block_size, int sample_rate ) : System
block_size int
sample_rate int
return System

abort() public method

public abort ( ) : void
return void

append() public method

public append ( float data, uint length, double amp_left, double amp_right ) : void
data float
length uint
amp_left double
amp_right double
return void

change_block_size() public method

public change_block_size ( int block_size ) : bool
block_size int
return bool

flush_and_exit() public method

public flush_and_exit ( double amp_left, double amp_right ) : void
amp_left double
amp_right double
return void

get_play_time() public method

public get_play_time ( ) : float
return float

is_alive() public method

public is_alive ( ) : bool
return bool

on_your_mark() public method

public on_your_mark ( string files, long wave_read_offset_samples ) : int
files string
wave_read_offset_samples long
return int

reset() public method

public reset ( ) : void
return void

set_error_samples() public method

public set_error_samples ( int error_samples ) : void
error_samples int
return void

set_first_buffer_written_callback() public method

public set_first_buffer_written_callback ( FirstBufferWrittenCallback proc ) : void
proc FirstBufferWrittenCallback
return void

terminate() public method

public terminate ( ) : void
return void