1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Bring that Whole New World to the Old Continent too

Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
Rémi Verschelde
2017-03-19 00:36:26 +01:00
parent 1d418afe86
commit f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions

View File

@@ -28,48 +28,41 @@
/*************************************************************************/
#include "cp_sample_manager.h"
CPSampleManager *CPSampleManager::singleton = NULL;
CPSampleManager * CPSampleManager::singleton=NULL;
void CPSampleManager::copy_to(CPSample_ID p_from, CPSample_ID &p_to) {
ERR_FAIL_COND(!check(p_from));
void CPSampleManager::copy_to(CPSample_ID p_from,CPSample_ID &p_to) {
ERR_FAIL_COND(!check( p_from ));
if (p_to.is_null()) {
p_to=create( is_16bits( p_from), is_stereo( p_from), get_size(p_from));
p_to = create(is_16bits(p_from), is_stereo(p_from), get_size(p_from));
} else {
recreate( p_to, is_16bits( p_from), is_stereo( p_from), get_size(p_from));
recreate(p_to, is_16bits(p_from), is_stereo(p_from), get_size(p_from));
}
int len=get_size( p_from );
int ch=is_stereo( p_from ) ? 2 : 1;
for (int c=0;c<ch;c++) {
for (int i=0;i<len;i++) {
int16_t s=get_data( p_from, i, c );
set_data( p_to, i, s, c );
int len = get_size(p_from);
int ch = is_stereo(p_from) ? 2 : 1;
for (int c = 0; c < ch; c++) {
for (int i = 0; i < len; i++) {
int16_t s = get_data(p_from, i, c);
set_data(p_to, i, s, c);
}
}
set_loop_type( p_to, get_loop_type( p_from ) );
set_loop_begin( p_to, get_loop_begin( p_from ) );
set_loop_end( p_to, get_loop_end( p_from ) );
set_c5_freq( p_to, get_c5_freq( p_from ) );
set_loop_type(p_to, get_loop_type(p_from));
set_loop_begin(p_to, get_loop_begin(p_from));
set_loop_end(p_to, get_loop_end(p_from));
set_c5_freq(p_to, get_c5_freq(p_from));
}
CPSampleManager::CPSampleManager() {
singleton=this;
singleton = this;
}
CPSampleManager *CPSampleManager::get_singleton() {