BASS.NET API for the Un4seen BASS Audio LibraryWaveWriter PropertiesBASS.NET API for the Un4seen BASS Audio Library

The WaveWriter type exposes the following members.

Properties

  NameDescription
Public propertyBitsPerSample
Gets or Sets the target resolution (number of bits per sample) of the Wave file being created.

This will be either 8, 16, 24 or 32.

Public propertyFileName
Gets or Sets the fully referenced path and file name of the wave file to write to data to.
Public propertyNumChannels
Gets the number of channels of the Wave file being created (values between 1 and 9 should be fine).

E.g. 1=mono, 2=stereo...

Public propertyOrigResolution
Gets or Sets the original resolution (number of bits per sample) of the stream channel resp. sample data to process.

This should be either 8, 16 or 32.

This value is used in the Write(IntPtr, Int32) methods to automatically convert the bit resolution according to the target BitsPerSample value. E.g. set this value to 32, if you receive 32-bit float sample data in a DSP callback and if you want to call the Write(IntPtr, Int32) method there directly, but have specified a target resolution of 8, 16 or 24 bit.

Public propertySampleRate
Gets the sample rate of the Wave file being created.

e.g. 44100 for 44.1kHz. Typically one of the following: 11025, 22050, 44100, 48000, 96000.

Top
See Also

Reference