Code-style consistency improvement:

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
This commit is contained in:
erwincoumans
2018-09-23 14:17:31 -07:00
parent b73b05e9fb
commit ab8f16961e
1773 changed files with 1081087 additions and 474249 deletions

View File

@@ -6,7 +6,7 @@
struct b3SoundMessage
{
int m_type;//B3_SOUND_SOURCE_TYPE
int m_type; //B3_SOUND_SOURCE_TYPE
double m_amplitude;
double m_frequency;
@@ -19,15 +19,15 @@ struct b3SoundMessage
bool m_autoKeyOff;
b3SoundMessage()
:m_type(B3_SOUND_SOURCE_SINE_OSCILLATOR),
m_amplitude(0.5),
m_frequency(440),
m_wavId(-1),
m_attackRate(0.001),
m_decayRate(0.00001),
m_sustainLevel(0.5),
m_releaseRate(0.0005),
m_autoKeyOff(false)
: m_type(B3_SOUND_SOURCE_SINE_OSCILLATOR),
m_amplitude(0.5),
m_frequency(440),
m_wavId(-1),
m_attackRate(0.001),
m_decayRate(0.00001),
m_sustainLevel(0.5),
m_releaseRate(0.0005),
m_autoKeyOff(false)
{
}
};
@@ -35,9 +35,8 @@ struct b3SoundMessage
class b3SoundEngine
{
struct b3SoundEngineInternalData* m_data;
public:
public:
b3SoundEngine();
virtual ~b3SoundEngine();
@@ -51,7 +50,6 @@ class b3SoundEngine
int loadWavFile(const char* fileName);
double getSampleRate() const;
};
#endif //B3_SOUND_ENGINE_H
#endif //B3_SOUND_ENGINE_H