mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 22:20:12 +00:00
ab8f16961e
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files. make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type. This commit contains no other changes aside from adding and applying clang-format-all.sh
30 lines
637 B
C++
30 lines
637 B
C++
#ifndef B3_WRITE_WAV_FILE_H
|
|
#define B3_WRITE_WAV_FILE_H
|
|
|
|
// b3WriteWavFile is copied from Stk::FileWvOut/FileWrite
|
|
// See also https://github.com/thestk/stk
|
|
// by Perry R. Cook and Gary P. Scavone, 1995--2014.
|
|
#include <string>
|
|
|
|
class b3WriteWavFile
|
|
{
|
|
void incrementFrame(void);
|
|
void flush();
|
|
|
|
struct b3WriteWavFileInternalData* m_data;
|
|
|
|
void flushData(int bufferSize);
|
|
|
|
public:
|
|
b3WriteWavFile();
|
|
virtual ~b3WriteWavFile();
|
|
|
|
bool setWavFile(std::string fileName, int sampleRate, int numChannels, bool useDoublePrecision = true);
|
|
|
|
void closeWavFile();
|
|
|
|
void tick(double* values, int numValues);
|
|
};
|
|
|
|
#endif //B3_WRITE_WAV_FILE_H
|