public AudioPlayer(int int0, WaveFormat waveFormat0, int int1, float volume, bool bool3, Delegate3 delegate31) { WaitCallback waitCallback = null; var volumeListener = new VolumeListener(); volumeListener.Volume = volume; _delegate40 = Class165.smethod_0; _object0 = new object(); //base..ctor(); volumeListener.AudioPlayer = this; _bool2 = bool3; _byte0 = (byte)((waveFormat0.short_2 == 8) ? 128 : 0); _delegate30 = delegate31; Exception4.smethod_1( Class162.waveOutOpen(out _intptr0, int0, waveFormat0, _delegate40, 0, Class162.Enum17.Const3), "waveOutOpen"); method_7(waveFormat0.method_0(int1 / 5), 5); _thread0 = new Thread(method_6); SetVolume(0f); _thread0.Start(); if (waitCallback == null) { waitCallback = volumeListener.StartListener; } ThreadPool.QueueUserWorkItem(waitCallback); }
public Class163(GenericAudioStream stream1_1, int int_4, int int_5) { this.stream1_0 = stream1_1; this.int_1 = int_4; this.int_2 = int_5; this.double_0 = (double)stream1_1.vmethod_0().int_0 * (double)stream1_1.vmethod_0().short_1 / 1000.0; this.delegate4_0 = new Class162.Delegate4(this.method_2); this.queue_1 = new Queue<Class163.Class164>(); this.queue_0 = new Queue<Class158>(5); this.autoResetEvent_0 = new AutoResetEvent(false); this.object_0 = new object(); this.thread_0 = new Thread(new ThreadStart(this.method_1)); this.thread_0.Start(); this.enum1_0 = Enum1.const_0; this.method_0(stream1_1); }
public WaveOutput(GenericAudioStream stream11, int int4, int int5) { _stream10 = stream11; _int1 = int4; _int2 = int5; _double0 = stream11.vmethod_0().int_0 *(double)stream11.vmethod_0().short_1 / 1000.0; _delegate40 = method_2; _queue1 = new Queue <Class164>(); _queue0 = new Queue <Class158>(5); _autoResetEvent0 = new AutoResetEvent(false); _object0 = new object(); _thread0 = new Thread(method_1); _thread0.Start(); _enum10 = AudioStatus.ShouldStopAudio; method_0(stream11); }
public WaveOutput(GenericAudioStream stream1_1, int int_4, int int_5) { this.stream1_0 = stream1_1; this.int_1 = int_4; this.int_2 = int_5; this.double_0 = (double)stream1_1.vmethod_0().int_0 *(double)stream1_1.vmethod_0().short_1 / 1000.0; this.delegate4_0 = new Class162.Delegate4(this.method_2); this.queue_1 = new Queue <WaveOutput.Class164>(); this.queue_0 = new Queue <Class158>(5); this.autoResetEvent_0 = new AutoResetEvent(false); this.object_0 = new object(); this.thread_0 = new Thread(new ThreadStart(this.method_1)); this.thread_0.Start(); this.enum1_0 = AudioStatus.ShouldStopAudio; this.method_0(stream1_1); }
public AudioPlayer(int int_0, WaveFormat waveFormat_0, int int_1, float Volume, bool bool_3, Delegate3 delegate3_1) : base() { WaitCallback waitCallback = null; AudioPlayer.VolumeListener volumeListener = new AudioPlayer.VolumeListener(); volumeListener.Volume = Volume; this.delegate4_0 = new Class162.Delegate4(Class165.smethod_0); this.object_0 = new object(); //base..ctor(); volumeListener.audioPlayer = this; this.bool_2 = bool_3; this.byte_0 = (byte)((waveFormat_0.short_2 == 8) ? 128 : 0); this.delegate3_0 = delegate3_1; Exception4.smethod_1(Class162.waveOutOpen(out this.intptr_0, int_0, waveFormat_0, this.delegate4_0, 0, Class162.Enum17.const_3), "waveOutOpen"); this.method_7(waveFormat_0.method_0(int_1 / 5), 5); this.thread_0 = new Thread(new ThreadStart(this.method_6)); this.SetVolume(0f); this.thread_0.Start(); if (waitCallback == null) { waitCallback = new WaitCallback(volumeListener.StartListener); } ThreadPool.QueueUserWorkItem(waitCallback); }
public Class159(int int_0, WaveFormat waveFormat_0, int int_1, float float_0, bool bool_3, Delegate3 delegate3_1) : base() { WaitCallback waitCallback = null; Class159.Class160 @class = new Class159.Class160(); @class.float_0 = float_0; this.delegate4_0 = new Class162.Delegate4(Class165.smethod_0); this.object_0 = new object(); //base..ctor(); @class.class159_0 = this; this.bool_2 = bool_3; this.byte_0 = (byte)((waveFormat_0.short_2 == 8) ? 128 : 0); this.delegate3_0 = delegate3_1; Exception4.smethod_1(Class162.waveOutOpen(out this.intptr_0, int_0, waveFormat_0, this.delegate4_0, 0, Class162.Enum17.const_3), "waveOutOpen"); this.method_7(waveFormat_0.method_0(int_1 / 5), 5); this.thread_0 = new Thread(new ThreadStart(this.method_6)); this.method_2(0f); this.thread_0.Start(); if (waitCallback == null) { waitCallback = new WaitCallback(@class.method_0); } ThreadPool.QueueUserWorkItem(waitCallback); }
public static extern Enum18 waveOutOpen(out IntPtr hWaveOut, int uDeviceID, WaveFormat lpFormat, Class162.Delegate4 dwCallback, int dwInstance, Class162.Enum17 dwFlags);