ratio = ((double)BENCH_CYCLES) / res;
printf("Rendered %i blocks in %f secons,\n=> %f blocks per second.\n\n", (long)BENCH_CYCLES, res, ratio);
#endif // CREATE_BENCHMARK
- return (0);
+ return 0;
}
int buff_cfg;
if (fd)
- return (1);
+ return 1;
fd = ::open(globals.oss_device, O_WRONLY, 0);
if (fd == -1) {
int tX_audiodevice_oss ::close() {
if (!fd) {
- return (1);
+ return 1;
}
is_open = false;
::close(fd);
if (!load_err) {
tX_debug("tx_audiofile::load() Set samplerate to %i for file %s.", sample_rate, filename);
}
- return (load_err);
+ return load_err;
}
tx_audiofile ::~tx_audiofile() {
mem_type = TX_AUDIO_LOAD;
if (!init_wav_read(filename, &wav_in)) {
- return (TX_AUDIO_ERR_WAV_NOTFOUND);
+ return TX_AUDIO_ERR_WAV_NOTFOUND;
}
if (wav_in.depth != 16) {
- return (TX_AUDIO_ERR_NOT_16BIT);
+ return TX_AUDIO_ERR_NOT_16BIT;
}
if (wav_in.chans != 1) {
- return (TX_AUDIO_ERR_NOT_MONO);
+ return TX_AUDIO_ERR_NOT_MONO;
}
sample_rate = wav_in.srate;
data = (int16_t*)malloc(memsize);
if (!data) {
- return (TX_AUDIO_ERR_ALLOC);
+ return TX_AUDIO_ERR_ALLOC;
}
p = data;
if (bytes <= 0) {
free(data);
- return (TX_AUDIO_ERR_WAV_READ);
+ return TX_AUDIO_ERR_WAV_READ;
}
#ifdef BIG_ENDIAN_MACHINE
mem = data;
no_samples = memsize / sizeof(int16_t);
- return (TX_AUDIO_SUCCESS);
+ return TX_AUDIO_SUCCESS;
}
#endif
#endif
int oss_select_dsp_only(const struct dirent* entry) {
- return (strstr(entry->d_name, "dsp") != 0);
+ return strstr(entry->d_name, "dsp") != 0;
}
void append_oss_device_list(GtkComboBoxText* combo, char* current) {
return NULL;
else
- return (*plugin);
+ return *plugin;
}
LADSPA_Plugin* LADSPA_Plugin ::getPluginByUniqueID(long ID) {
for (plugin = plugin_list.begin(); plugin != plugin_list.end(); plugin++) {
if ((*plugin)->getUniqueID() == ID)
- return (*plugin);
+ return *plugin;
}
return NULL;
return NULL;
else
- return (*plugin);
+ return *plugin;
}
LADSPA_Stereo_Plugin* LADSPA_Stereo_Plugin ::getPluginByUniqueID(long ID) {
for (plugin = stereo_plugin_list.begin(); plugin != stereo_plugin_list.end(); plugin++) {
if ((*plugin)->getUniqueID() == ID)
- return (*plugin);
+ return *plugin;
}
return NULL;
atload(ec_feedback);
ec_set_feedback(ec_feedback);
- return (res);
+ return res;
}
int vtt_class ::load_11(FILE* input) {
atload(gui_page);
- return (res);
+ return res;
}
int vtt_class ::load_12(FILE* input) {
atload(hidden);
gui.ec_panel->hide(hidden);
- return (res);
+ return res;
}
int vtt_class ::load_13(FILE* input) {
atload(hidden);
gui.ec_panel->hide(hidden);
- return (res);
+ return res;
}
int vtt_class ::load_14(FILE* input) {
atload(hidden);
gui.ec_panel->hide(hidden);
- return (res);
+ return res;
}
int vtt_class ::load_all_10(FILE* input, char* fname) {
ld_destroy();
- return (res);
+ return res;
}
int vtt_class ::load_all_11(FILE* input, char* fname) {
ld_destroy();
- return (res);
+ return res;
}
int vtt_class ::load_all_12(FILE* input, char* fname) {
ld_destroy();
- return (res);
+ return res;
}
int vtt_class ::load_all_13(FILE* input, char* fname) {
ld_destroy();
- return (res);
+ return res;
}
int vtt_class ::load_all_14(FILE* input, char* fname) {
ld_destroy();
- return (res);
+ return res;
}
void vtt_fx_ladspa ::load(FILE* input) {
} else
tmp = name;
- return (tmp);
+ return tmp;
}
void ld_set_setname(char* name) {
rec_dialog = NULL;
rec_dialog_win = NULL;
rec_dont_care = 0;
- return (0);
+ return 0;
}
void do_rec(GtkWidget* wid) {
if (grab_mode == FALLBACK) {
gdk_window_set_event_compression(window, enable_compression);
}
- return (ENG_ERR_XOPEN);
+ return ENG_ERR_XOPEN;
}
gtk_window_present(GTK_WINDOW(main_window));
if (grab_mode == FALLBACK) {
gdk_window_set_event_compression(window, enable_compression);
}
- return (-1);
+ return -1;
}
pointer = gdk_seat_get_pointer(seat);
gtk_widget_show(box);
gtk_container_add(GTK_CONTAINER(button), box);
- return (button);
+ return button;
}
GtkWidget* create_top_button(int icon_id) {
for (sp = all->begin(); sp != all->end(); sp++) {
if ((*sp)->get_persistence_id() == pid)
- return ((*sp));
+ return (*sp);
}
//tX_error("failed to resolve persistence id [%i].", pid);
- return (NULL);
+ return NULL;
}
void tX_seqpar ::record_value(const float value) {
}
ec_set_length(ec_length);
- return (res);
+ return res;
}
int vtt_class ::set_output_buffer_size(int newsize) {
}
pthread_mutex_unlock(&render_lock);
- return (mix_out_buffer);
+ return mix_out_buffer;
}
void vtt_class ::forward_all_turntables() {
indent[strlen(indent) - 1] = 0;
tX_store("%s</turntable>\n", indent);
- return (res);
+ return res;
}
#define TX_XML_SETFILE_VERSION "1.1"
tX_store("</terminatorXset>\n");
- return (res);
+ return res;
}
int vtt_class ::load(xmlDocPtr doc, xmlNodePtr node) {
ld_destroy();
- return (res);
+ return res;
}
void add_vtt(GtkWidget* ctrl, GtkWidget* audio, char* fn) {
p[0] = info->head[x]; \
p[1] = info->head[x + 1]; \
swap16(&tmp); \
- return (tmp);
+ return tmp;
#else
p = (int8_t*)&tmp; \
p[0] = info->head[x]; \
p[1] = info->head[x + 1]; \
- return (tmp);
+ return tmp;
#endif
p[2] = info->head[x + 2]; \
p[3] = info->head[x + 3]; \
swap32(&tmp); \
- return (tmp);
+ return tmp;
#else
p[1] = info->head[x + 1]; \
p[2] = info->head[x + 2]; \
p[3] = info->head[x + 3]; \
- return (tmp);
+ return tmp;
#endif
/* mono or stereo */
int8_t get_wav_channels(wav_sig* info) {
- return (info->head[22]);
+ return info->head[22];
// read16(22);
}
}
int8_t get_wav_blkalign(wav_sig* info) {
- return (info->head[32]);
+ return info->head[32];
// read16(32);
}
/* sample depth (8bit or 16bit) */
int8_t get_wav_depth(wav_sig* info) {
- return (info->head[34]);
+ return info->head[34];
// read16(34);
}
info->blkalign = get_wav_blkalign(info);
info->depth = get_wav_depth(info);
info->len = get_wav_len(info);
- return (info->handle);
+ return info->handle;
}
void wav_close(FILE* wav) {
return NULL;
init_head(info);
fwrite(info->head, 44, 1, info->handle);
- return (info->handle);
+ return info->handle;
}
int rewrite_head(wav_sig* info) {
init_head(info);
fwrite(info->head, 44, 1, info->handle);
- return (0);
+ return 0;
}