#include "dsp-drivers.h"#include "index.h"

| #define bytes2ms | ( | bytes, | |||
| rate | ) | (int)(samples2ms(bytes,rate)/4) |
Referenced by dsp_oss::open().
| #define err_dsp 5 |
Referenced by core_start(), dsp_oss::open(), dsp_jack::open(), dsp_alsa::open(), and Player::startCore().
| #define err_needidx 1 |
Referenced by check_start(), core_meta_init(), and normal_start().
| #define err_none 0 |
| #define err_noraw 2 |
Referenced by Player::initCore(), and wave_open().
| #define err_nospawn 3 |
Referenced by Player::initCore(), and wave_open().
| #define map_exit_continue -2 |
Referenced by map_active(), and Player::mapStart().
| #define map_exit_restart -1 |
Referenced by map_active(), and Player::mapStart().
| #define map_exit_stop -1000 |
Referenced by map_active(), and Player::mapStart().
Referenced by Player::timerTick().
| #define ms2bytes | ( | ms, | |||
| rate | ) | (int)(4*ms2samples(ms,rate)) |
Referenced by dsp_oss::open().
| #define ms2samples | ( | ms, | |||
| rate | ) | (int)((ms)*rate/1000) |
| #define samples2ms | ( | samples, | |||
| rate | ) | (int)(1000*(samples)/rate) |
Referenced by dsp_oss::close().
| #define samples2s | ( | samples, | |||
| rate | ) | (int)(samples/rate) |
Referenced by Player::timerTick(), and writer_died().
| #define wave_bufsize (32L*1024L) |
| typedef stereo_sample2(* _lfo_)(stereo_sample2 x) |
| typedef map_segment* map_data |
| typedef struct t_segment map_segment |
| int app_init | ( | int | argc, | |
| char * | argv[] | |||
| ) |
| void core_done | ( | ) |
Closes the wave and writes any changes to the index
References Index::changed(), cue_write(), Debug(), finished, Info(), opt_quiet, wave_close(), and Index::write_idx().
Referenced by batch_start(), and Player::done().
| int core_meta_init | ( | ) |
Initializes the index fields and start reading the audio The error can be err_none (wanted !), err_needidx, err_noraw, err_nospawn, or err_dsp.
References arg_match, argument, common_init(), copyright(), cue_read(), currentperiod_metarate, err_needidx, err_none, Index::get_period(), normalperiod_metarate, opt_match, period_to_quad(), target, and targetperiod_metarate.
Referenced by batch_start(), check_start(), and normal_start().
| int core_object_init | ( | bool | sync | ) |
References wave_open().
Referenced by batch_start(), and Player::initCore().
| int core_start | ( | bool | ui | ) |
Starts the core if the wave is already opened. If user interface is true it will use QMessageBox to display errors.
References assert(), dsp_driver::close(), dsp, err_dsp, err_none, finished, lfo_init(), map_init(), msg_playing_state_changed(), dsp_driver::open(), pause_playing(), rms_init(), and dsp_driver::start().
Referenced by Player::startCore().
| void core_stop | ( | ) |
Waits for the core to finish, does nothing else
References dsp, finished, and dsp_driver::stop().
Referenced by Player::done(), and Player::stopCore().
| void cue_retrieve | ( | int | nr | ) |
Will retrieve the cue from memory and place it in cue It will effectively be used later in the jumpto function which will also try to stay in sync with the current position in the phrase.
References cue_metarate, and cues_metarate.
| void cue_set | ( | ) |
References cue_metarate, diskrate_to_metarate(), dsp, dsp_driver::latency(), x_normalise(), and y_playrate.
Referenced by Player::setCue(), and Player::start_stop().
| void cue_shift_metarate | ( | signed8 | ) |
References cue_metarate, dsp, dsp_driver::get_paused(), and pause_playing().
| void cue_store | ( | int | nr | ) |
Will write the current position into one of the cue points
References cue_metarate, and cues_metarate.
| void jumpto | ( | signed8 | ) |
References cue_metarate, currentperiod_metarate, dsp, dsp_driver::get_paused(), metarate, metarate_to_diskrate(), dsp_driver::playrate, unpause_playing(), y_normalise(), and y_playrate.
Referenced by lfo_set(), map_set_diskrate(), and Player::start_stop().
| stereo_sample2 lfo_break | ( | stereo_sample2 | x | ) |
References lfo_phase_playrate, and y_playrate.
Referenced by Player::breakLfo().
| stereo_sample2 lfo_difference | ( | stereo_sample2 | x | ) |
| _lfo_ lfo_get | ( | ) |
References lfo_do.
Referenced by Player::metronome().
| stereo_sample2 lfo_metronome | ( | stereo_sample2 | x | ) |
References stereo_sample2::add(), dsp, lfo_phase_playrate, stereo_sample2::muldiv(), dsp_driver::playrate, and y_playrate.
Referenced by Player::metronome().
| stereo_sample2 lfo_no | ( | stereo_sample2 | x | ) |
References stereo_sample2::muldiv().
Referenced by lfo_init(), and Player::normalLfo().
| stereo_sample2 lfo_pan | ( | stereo_sample2 | x | ) |
References lfo_phase_playrate, lfo_volume(), and y_playrate.
Referenced by Player::fastPan(), and Player::slowPan().
| stereo_sample2 lfo_revsaw | ( | stereo_sample2 | x | ) |
References lfo_phase_playrate, lfo_volume(), and y_playrate.
Referenced by Player::fastRevSaw(), and Player::slowRevSaw().
| stereo_sample2 lfo_saw | ( | stereo_sample2 | x | ) |
References lfo_phase_playrate, lfo_volume(), and y_playrate.
Referenced by Player::fastSaw(), and Player::slowSaw().
References currentperiod_metarate, dsp, dsp_driver::get_paused(), jumpto(), lfo_do, lfo_phase_playrate, metarate, quad_period_type::muldiv(), dsp_driver::playrate, unpause_playing(), and y_playrate.
Referenced by Player::breakLfo(), Player::fastPan(), Player::fastRevSaw(), Player::fastSaw(), Player::metronome(), Player::normalLfo(), Player::slowPan(), Player::slowRevSaw(), and Player::slowSaw().
| int loop_set_diskrate | ( | unsigned8 | jumpback | ) |
References cue_metarate, dsp, dsp_driver::get_paused(), loop_at_diskrate, loop_off, loop_restart_diskrate, metarate_to_diskrate(), unpause_playing(), and x_diskrate.
Referenced by Player::loop().
| void map_loop_set | ( | bool | l | ) |
References map_loop.
Referenced by Player::mapLoopChange().
References bpmdj_deallocate, cue_metarate, dsp, dsp_driver::get_paused(), jumpto(), dsp_driver::latency(), map_do, map_exit_pos_diskrate, map_loop, map_size, map_start_pos_diskrate, map_stop_pos_diskrate, metarate_to_diskrate(), unpause_playing(), x_normalise(), and y_playrate.
Referenced by map_active(), and Player::mapStart().
| void map_stop | ( | ) |
References bpmdj_deallocate, map_active(), map_do, x_diskrate, y_normalise(), and y_playrate.
Referenced by Player::mapStop().
References diskrate, and metarate.
Referenced by RhythmAnalyzer::calculateRhythmPattern2(), BeatGraphLabel::drawCueText(), jumpto(), loop_set_diskrate(), map_set_diskrate(), and Player::mapStart().
References dsp, metarate, and dsp_driver::playrate.
Referenced by clock_driver::shift_metarate().
| void msg_playing_state_changed | ( | ) |
References app, and player_window.
| void msg_writing_finished | ( | ) |
This function is called by the player core when the writing process finished its execution.
References app, opt_check, opt_setup, and player_window.
| FILE* openCoreRawFile | ( | ) |
References data, get_rawpath(), and openRawFile().
Referenced by RhythmAnalyzer::calculateRhythmPattern2(), SpectrumAnalyzer::fetchSpectrum_normal(), and EnergyAnalyzer::readAudio().
| void pause_playing | ( | ) |
Asks the player to pause its playing. This function must return immediately and simply signals a pause request
References dsp, dsp_driver::get_paused(), msg_playing_state_changed(), and dsp_driver::pause().
Referenced by core_start(), cue_shift_metarate(), map_active(), and Player::start_stop().
References dsp, metarate, and dsp_driver::playrate.
| void process_options | ( | int | argc, | |
| char * | argv[] | |||
| ) |
References arg_config, arg_int, arg_match, arg_str, argument, dsp, dsp_driver::get_driver(), i, is_none_driver(), metronome, next_arg, opt_check, opt_match, opt_quiet, opt_setup, option(), options_failure(), and sprintf().
Referenced by main().
| void set_normalperiod_metarate | ( | quad_period_type | newnormalperiod, | |
| bool | update_on_disk = true | |||
| ) |
References assert(), clock_driver::set_normalperiod_metarate(), and Index::set_period().
Referenced by BeatGraphAnalyzer::setTempo().
| void unpause_playing | ( | ) |
References dsp, dsp_driver::get_paused(), msg_playing_state_changed(), and dsp_driver::unpause().
Referenced by jumpto(), lfo_set(), loop_set_diskrate(), map_set_diskrate(), and Player::restart().
| unsigned4 wave_max | ( | ) |
References fsize(), wave_file, and wave_name.
Referenced by Player::timerTick(), wave_read(), and writer_died().
| char* arg_match |
Referenced by core_meta_init(), process_options(), and remote().
| char* argument |
Referenced by Md5Analyzer::analyze(), core_meta_init(), main(), normal_start(), process_options(), and remote().
cue points are expressed as positions (samples) in the song at metarate cue is the current cue
Referenced by Player::checkCueNonZero(), cue_read(), cue_retrieve(), cue_set(), cue_shift_metarate(), cue_store(), cue_write(), BeatGraphLabel::drawCueText(), jumpto(), loop_set_diskrate(), map_set_diskrate(), and Player::start_stop().
These are the for Z, X, C and V cues, in that order
Referenced by cue_read(), cue_retrieve(), cue_store(), cue_write(), BeatGraphLabel::drawCueText(), and Player::mapStart().
| const int diskrate = 44100 |
Diskrate is the sample rate of the decoded file Will be defined later on in clock-drivers.c++
Referenced by clock_driver::changetempo(), diskrate_to_metarate(), fft_to_bark(), index2autocortempo(), Player::loop(), map_output(), Player::mapStart(), metarate_to_diskrate(), clock_driver::set_normalperiod_metarate(), spectrum_to_bark(), Player::timerTick(), wave_read(), writer_died(), x_normalise(), and y_normalise().
| const int metarate = 44100 |
metarate is the sample rate used to express measure lengths in the database, independent from diskrate or playrate. This is normally set to 44100
Referenced by ActiveFragmentCreator::createOneFor(), diskrate_to_metarate(), jumpto(), lfo_set(), Player::loop(), Player::mapStart(), metarate_to_diskrate(), metarate_to_playrate(), Player::nudgeCueBack(), Player::nudgeCueForward(), Player::nudgeMinus1M(), Player::nudgeMinus4M(), Player::nudgeMinus8M(), Player::nudgePlus1M(), Player::nudgePlus4M(), Player::nudgePlus8M(), playrate_to_metarate(), and Player::timerTick().
| bool opt_check |
Referenced by Player::initCore(), main(), msg_writing_finished(), process_options(), PlayingStateChanged::run(), and Player::startCore().
| int opt_match |
Referenced by core_meta_init(), process_options(), and remote().
| int opt_quiet |
Referenced by core_done(), and process_options().
Referenced by Md5Analyzer::analyze(), EnergyAnalyzer::analyze(), batch_start(), RhythmAnalyzer::calculateRhythmPattern2(), Player::captionize_according_to_index(), SpectrumAnalyzer::fetchSpectrum_normal(), BeatGraphAnalyzer::setTempo(), setup_start(), Player::tabChanged(), BpmAnalyzerDialog::tap(), and Player::timerTick().
| char* wave_name |
Referenced by wave_close(), wave_max(), wave_open(), and DecoderChecker::works().
1.6.2