|
Wave Arts VQE
1.00
Voice Quality Enhancement
|
WAV file writer. More...
#include <WaveNativeFileIO.h>
Public Member Functions | |
| WaveNativeFileOut (long cvtBufFileSize=2048) | |
| Create WAV file writer. | |
| bool | Open (char *fileName, long sampleRate, int sampleSize, int numChannels) |
| Create output file. | |
| int | GetNumChannels () |
| Get the number of audio channels. | |
| int | GetBitsPerSamp () |
| Get the number of bits per sample. | |
| int | GetSampSize () |
| Get the sample size in bytes. | |
| int | GetFrameSize () |
| Get the frame size in bytes. | |
| long | GetSampRate () |
| Get the sample rate. | |
| long | Tell () |
| Get current write offset. | |
| long | Write (char *buf, long numBytes) |
| Write raw data. | |
| long | WriteShortFrames (short *buf, long numFrames) |
| Write 16-bit integer samples. | |
| long | WriteFloatFrames (float *buf, long numFrames) |
| Write 32-bit float samples. | |
| bool | Close () |
| Close file. | |
Protected Attributes | |
| WavCkInfo | ckRIFF |
| RIFF chunk. | |
| WavCkInfo | ck |
| data chunk | |
| HWavFp | hWavFp |
| handle to WAV file pointer | |
| int | numChannels |
| number of channels | |
| int | numBitsPerSamp |
| number of bits per sample | |
| int | sampSize |
| sample size in bytes | |
| int | frameSize |
| frame size in bytes | |
| long | sampRate |
| sampling rate | |
WAV file writer.
| bool WaveNativeFileOut::Close | ( | ) | [virtual] |
| bool WaveNativeFileOut::Open | ( | char * | fileName, |
| long | sampleRate, | ||
| int | numBitsPerSamp, | ||
| int | numChannels | ||
| ) | [virtual] |
Create output file.
| [in] | fileName | path of file to create |
| [in] | sampleRate | sampling rate |
| [in] | numBitsPerSamp | number of bits per sample |
| [in] | numChannels | number of channels |
Create audio file. Returns true if success, false if error.
Implements AFileOut.
| long WaveNativeFileOut::Write | ( | char * | buf, |
| long | numBytes | ||
| ) | [virtual] |
Write raw data.
| [in] | buf | raw data to write |
| [in] | numBytes | number of bytes to write |
Write raw sample data. This is called internally and the user will probably prefer one of the other writer functions.
Implements AFileOut.
| long WaveNativeFileOut::WriteFloatFrames | ( | float * | buf, |
| long | numFrames | ||
| ) | [virtual] |
Write 32-bit float samples.
| [in] | buf | pointer to 32-bit float samples |
| [in] | numFrames | number of sample frames to write |
Convert from 32-bit float samples to file format and write. Multi-channel data is specified in interleaved format. Return number of sample frames written.
Implements AFileOut.
| long WaveNativeFileOut::WriteShortFrames | ( | short * | buf, |
| long | numFrames | ||
| ) | [virtual] |
Write 16-bit integer samples.
| [in] | buf | pointer to 16-bit integer samples |
| [in] | numFrames | number of sample frames to write |
Convert from 16-bit integer samples to file format and write. Multi-channel data is specified in interleaved format. Return number of sample frames written.
Implements AFileOut.
1.7.5.1