public OpenForWrite ( System Filename, System stream, int SamplingRate, short BitsPerSample, short NumChannels ) : int | ||
Filename | System | |
stream | System | |
SamplingRate | int | |
BitsPerSample | short | |
NumChannels | short | |
리턴 | int |
public WaveFileObuffer(int number_of_channels, int freq, System.IO.Stream stream) { InitBlock(); buffer = new short[OBUFFERSIZE]; bufferp = new short[MAXCHANNELS]; channels = number_of_channels; for (int i = 0; i < number_of_channels; ++i) bufferp[i] = (short) i; outWave = new WaveFile(); int rc = outWave.OpenForWrite(null, stream, freq, (short) 16, (short) channels); }
public WaveFileObuffer(int number_of_channels, int freq, System.IO.Stream stream) { InitBlock(); buffer = new short[OBUFFERSIZE]; bufferp = new short[MAXCHANNELS]; channels = number_of_channels; for (int i = 0; i < number_of_channels; ++i) { bufferp[i] = (short)i; } outWave = new WaveFile(); int rc = outWave.OpenForWrite(null, stream, freq, (short)16, (short)channels); }
/// <summary> Creates a new WareFileObuffer instance. /// /// </summary> /// <param name="">number_of_channels /// The number of channels of audio data /// this buffer will receive. /// /// </param> /// <param name="freq The">sample frequency of the samples in the buffer. /// /// </param> /// <param name="fileName The">filename to write the data to. /// /// </param> public WaveFileObuffer(int number_of_channels, int freq, System.String FileName) { InitBlock(); if (FileName == null) throw new System.NullReferenceException("FileName"); buffer = new short[OBUFFERSIZE]; bufferp = new short[MAXCHANNELS]; channels = number_of_channels; for (int i = 0; i < number_of_channels; ++i) bufferp[i] = (short) i; outWave = new WaveFile(); int rc = outWave.OpenForWrite(FileName, null, freq, (short) 16, (short) channels); }
/// <summary> Creates a new WareFileObuffer instance. /// /// </summary> /// <param name="">number_of_channels /// The number of channels of audio data /// this buffer will receive. /// /// </param> /// <param name="freq The">sample frequency of the samples in the buffer. /// /// </param> /// <param name="fileName The">filename to write the data to. /// /// </param> public WaveFileObuffer(int number_of_channels, int freq, System.String FileName) { InitBlock(); if (FileName == null) { throw new System.NullReferenceException("FileName"); } buffer = new short[OBUFFERSIZE]; bufferp = new short[MAXCHANNELS]; channels = number_of_channels; for (int i = 0; i < number_of_channels; ++i) { bufferp[i] = (short)i; } outWave = new WaveFile(); int rc = outWave.OpenForWrite(FileName, null, freq, (short)16, (short)channels); }