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

The WaveWriter type exposes the following members.
Constructors

  NameDescription
Public methodWaveWriter(String, Int32, Boolean)
Create a WaveWrite instance from a given BASS stream channel.
Public methodWaveWriter(String, Int32, Int32, Boolean)
Create a WaveWrite instance from a given BASS stream channel.
Public methodWaveWriter(String, Int32, Int32, Int32, Boolean)
Create a WaveWrite instance to save sample data to be processed to a wave file.
Back to Top
Methods

  NameDescription
Public methodClose
Closes the WaveWriter and underlying wave file and updates the wave header accordingly.
Public methodDispose
Disposes the current instance of the WaveWriter and all it's resources.
Protected methodFinalize
Finalization code.
(Overrides OnlineObject Finalize .)
Public methodWrite( Byte , Int32)
Use this method to provide 8-bit sample data to the WaveWriter and write these samples to the wave file.
Public methodWrite( Int16 , Int32)
Use this method to provide 16-bit sample data to the WaveWriter and write these samples to the wave file.
Public methodWrite(IntPtr, Int32)
Use this method to provide the sample data to the WaveWriter and write these samples to the wave file.
Public methodWrite( Single , Int32)
Use this method to provide 32-bit sample data to the WaveWriter and write these samples to the wave file.
Public methodWriteNoConvert
Use this method to provide sample data to the WaveWriter and write these samples to the wave file.
Back to Top
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.

Back to Top
See Also