Blender V2.61 - r43446
|
#include "AUD_JOSResampleReader.h"
#include "AUD_JOSResampleReaderCoeff.cpp"
#include <cmath>
#include <cstring>
#include <iostream>
Go to the source code of this file.
Defines | |
#define | CC m_channels + channel |
#define | AUD_RATE_MAX 256 |
#define | SHIFT_BITS 12 |
#define | double_to_fp(x) (lrint(x * double(1 << SHIFT_BITS))) |
#define | int_to_fp(x) (x << SHIFT_BITS) |
#define | fp_to_int(x) (x >> SHIFT_BITS) |
#define | fp_to_double(x) (x * 1.0/(1 << SHIFT_BITS)) |
#define | fp_rest(x) (x & ((1 << SHIFT_BITS) - 1)) |
#define | fp_rest_to_double(x) fp_to_double(fp_rest(x)) |
#define | RESAMPLE_METHOD(name, left, right) |
Functions | |
RESAMPLE_METHOD (resample,{channel=0;do{sums[channel]+=*data *v;channel++;data++;}while(channel< m_channels);},{channel=m_channels;do{channel--;sums[channel]+=*data *v;data--;}while(channel);}) RESAMPLE_METHOD(resample_mono | |
Variables | |
* | sums = *data * v |
data |
Definition in file AUD_JOSResampleReader.cpp.
#define AUD_RATE_MAX 256 |
Definition at line 62 of file AUD_JOSResampleReader.cpp.
#define CC m_channels + channel |
Definition at line 60 of file AUD_JOSResampleReader.cpp.
#define double_to_fp | ( | x | ) | (lrint(x * double(1 << SHIFT_BITS))) |
Definition at line 64 of file AUD_JOSResampleReader.cpp.
#define fp_rest | ( | x | ) | (x & ((1 << SHIFT_BITS) - 1)) |
Definition at line 68 of file AUD_JOSResampleReader.cpp.
#define fp_rest_to_double | ( | x | ) | fp_to_double(fp_rest(x)) |
Definition at line 69 of file AUD_JOSResampleReader.cpp.
#define fp_to_double | ( | x | ) | (x * 1.0/(1 << SHIFT_BITS)) |
Definition at line 67 of file AUD_JOSResampleReader.cpp.
#define fp_to_int | ( | x | ) | (x >> SHIFT_BITS) |
Definition at line 66 of file AUD_JOSResampleReader.cpp.
#define int_to_fp | ( | x | ) | (x << SHIFT_BITS) |
Definition at line 65 of file AUD_JOSResampleReader.cpp.
#define RESAMPLE_METHOD | ( | name, | |
left, | |||
right | |||
) |
Definition at line 115 of file AUD_JOSResampleReader.cpp.
#define SHIFT_BITS 12 |
Definition at line 63 of file AUD_JOSResampleReader.cpp.
RESAMPLE_METHOD | ( | resample | ) |
Definition at line 262 of file AUD_JOSResampleReader.cpp.
Referenced by actcon_flush_tars(), actcon_get_tarmat(), actcon_get_tars(), actcon_id_looper(), actcon_new_data(), actcon_relink(), add_pose_transdata(), add_user_list(), ExtraTags::addTag(), btDefaultSerializer::allocate(), allocVertexData(), MD5Hash::append(), apply_targetless_ik(), applyTransObjects(), armature_circle_doSelectJoint(), armature_circle_select(), MeshImporter::assign_textures_to_uvlayer(), attach_ndof_data(), awrite(), b_bone_spline_setup(), bbs_obmode_mesh_verts(), bbs_obmode_mesh_verts__mapFunc(), BIF_ReebGraphMultiFromEditMesh(), BKE_ptcache_mem_index_find(), blend_from_shape_exec(), BLI_argsParse(), BLI_bvhtree_bb_raycast(), BLI_bvhtree_find_nearest(), BLI_bvhtree_overlap(), BLI_bvhtree_range_query(), BLI_bvhtree_ray_cast(), BLI_genericNodeN(), BLI_pbvh_node_planes_contain_AABB(), BLI_uniquename(), BME_disk_remove_edge(), build_dag_object(), KX_NavMeshObject::BuildNavMesh(), button_activate_init(), button_activate_state(), button_timers_tooltip_remove(), button_tooltip_timer_reset(), bvh_callback(), camera_to_frame_view_cb(), camerasolver_evaluate(), camerasolver_id_looper(), camerasolver_new_data(), cdf_read_data(), childof_clear_inverse_exec(), childof_evaluate(), childof_flush_tars(), childof_get_tars(), childof_id_looper(), childof_new_data(), childof_set_inverse_exec(), clampto_evaluate(), clampto_flush_tars(), clampto_get_tars(), clampto_id_looper(), compare_ab_cfraPtr(), compare_ak_cfraPtr(), compareDrawOptions(), compareDrawOptionsEm(), constraint_valid(), constraintRotLim(), constraints_list_needinv(), constraintSizeLim(), constraintTransLim(), copy_editface_active_customdata(), copy_value_single(), copy_values(), count_images(), create_func(), create_slide_marker_data(), createnode(), curve_to_displist(), CustomData_set_layer_unique_name(), customdata_unique_check(), dag_id_flush_update(), dag_id_flush_update__isDependentTexture(), DAG_pose_sort(), damptrack_evaluate(), damptrack_flush_tars(), damptrack_get_tars(), damptrack_id_looper(), damptrack_new_data(), data_dir_add(), defgroup_unique_check(), defgroup_unique_name(), delete_customdata_layer(), delete_exec(), depth_segment_cb(), MeshManager::device_update_attributes(), dialog_exec_cb(), direct_link_constraints(), direct_link_fmodifiers(), distlimit_evaluate(), distlimit_flush_tars(), distlimit_get_tars(), distlimit_id_looper(), distlimit_new_data(), dl_surf_to_renderdata(), DNA_struct_reconstruct(), DNA_struct_switch_endian(), dna_write(), do_brush_action(), do_guides(), do_lasso_select_curve(), do_lasso_select_curve__doSelect(), do_lasso_select_lattice(), do_lasso_select_lattice__doSelect(), do_lasso_select_mesh(), do_lasso_select_mesh__doSelectEdge(), do_lasso_select_mesh__doSelectFace(), do_lasso_select_mesh__doSelectVert(), do_lattice_box_select(), do_lattice_box_select__doSelect(), do_makeDispListCurveTypes(), do_mesh_box_select(), do_mesh_box_select__doSelectEdge(), do_mesh_box_select__doSelectFace(), do_mesh_box_select__doSelectVert(), do_multires_bake(), do_multires_smooth_brush(), do_nurbs_box_select(), do_nurbs_box_select__doSelect(), do_version_constraints_radians_degrees_250(), do_version_old_trackto_to_constraints(), do_versions(), draw_actuator_sound(), draw_actuator_steering(), draw_dm_edges_sel(), draw_dm_edges_sel__setDrawOptions(), draw_dm_faces_sel(), draw_dm_faces_sel__compareDrawOptions(), draw_dm_faces_sel__setDrawOptions(), draw_dm_verts(), draw_dm_verts__mapFunc(), draw_em_tf_mapped__set_draw(), draw_fcurve_curve_bezts(), draw_mesh_face_select(), draw_mesh_face_select__setHiddenOpts(), draw_mesh_face_select__setSelectOpts(), draw_mesh_textured(), draw_mesh_textured_old(), draw_modifier__generator(), draw_object(), drawDispListsolid(), drawDispListwire(), drawseqwave(), GHOST_DropTargetWin32::Drop(), dynamicPaint_freeSurfaceData(), ED_editors_init(), ED_mesh_color_remove(), ED_mesh_color_remove_named(), ED_mesh_uv_texture_remove(), ED_view3d_autodist_depth_seg(), editbone_unique_check(), EM_add_data_layer(), EM_free_data_layer(), EM_store_selection(), emDM_getFaceDataArray(), event_to_buf(), exec(), execute_posetree(), expand_fmodifiers(), expand_object(), expand_object_expandModifiers(), fcm_cycles_new_data(), fcm_cycles_time(), fcm_fn_generator_evaluate(), fcm_fn_generator_new_data(), fcm_generator_evaluate(), fcm_generator_free(), fcm_generator_new_data(), fcm_generator_verify(), fcm_limits_evaluate(), fcm_limits_time(), fcm_noise_evaluate(), fcm_noise_new_data(), fcm_python_free(), fcm_python_new_data(), fcm_stepped_new_data(), fcm_stepped_time(), fcurve_are_keyframes_usable(), id_map< void *, Shader >::find(), find_nearest_tracking_knot_cb(), find_nearest_tracking_segment_cb(), find_nearest_tracking_segment_end_cb(), findMissingFiles_visit_cb(), findnearestedge(), findnearestedge__doClosest(), findnearestface(), findnearestface__doClosest(), findnearestface__getDistance(), findnearestLattvert(), findnearestLattvert__doClosest(), findnearestNurbvert(), findnearestNurbvert__doClosest(), findnearestvert(), findnearestvert__doClosest(), MD5Hash::finish(), followpath_evaluate(), followpath_flush_tars(), followpath_get_tarmat(), followpath_get_tars(), followpath_id_looper(), followpath_new_data(), followtrack_evaluate(), followtrack_id_looper(), followtrack_new_data(), generate_preview(), get_bone_from_selectbuffer(), KDL::Vector2::GetValue(), ghost_event_proc(), GHOST_EventDragnDrop::GHOST_EventDragnDrop(), GIM_HASH_TABLE_NODE< T >::GIM_HASH_TABLE_NODE(), GPU_dynamic_texture(), GPU_dynamic_uniform(), has_targetless_ik(), AnimationExporter::hasAnimations(), heat_ray_source_visible(), HsiehHash(), icu_to_fcurves(), imb_cocoaLoadImage(), IMB_exr_add_channel(), IMB_exr_begin_read(), imb_exr_begin_read_mem(), IMB_exr_begin_write(), IMB_exr_close(), IMB_exr_get_handle(), IMB_exr_multilayer_convert(), IMB_exr_read_channels(), IMB_exr_set_channel(), IMB_exr_write_channels(), IMB_exrtile_begin_write(), IMB_exrtile_clear_channels(), IMB_exrtile_write_channels(), imb_savebmp(), init_bake_rast(), init_multiresbake_job(), init_render_curve(), init_render_mball(), init_structDNA(), init_timestamp_scanner(), KX_BlenderMaterial::Initialize(), initialize_chain(), initialize_posetree(), InputCustomRatio(), insert_curvekey(), insert_lattkey(), insert_meshkey(), internalAdd(), interp_barycentric_mface(), interp_bilinear_grid(), interp_bilinear_mface(), itasc_test_constraint(), joined_armature_fix_links(), kinematic_flush_tars(), kinematic_get_tarmat(), kinematic_get_tars(), kinematic_id_looper(), kinematic_new_data(), lattice_circle_select(), latticecurve_circle_doSelect(), layerDoMinMax_mloopcol(), layerDoMinMax_mloopuv(), layerFilesize_mdisps(), layerFree_mdisps(), layerMultiply_mloopcol(), layerMultiply_mloopuv(), layerRead_mdisps(), layers_poll(), layerSwap_mcol(), layerSwap_mdisps(), layerSwap_origspace_face(), layerSwap_tface(), layerValidate_mdisps(), layerWrite_mdisps(), lib_link_fmodifiers(), limitdistance_reset_exec(), load_file(), locktrack_evaluate(), locktrack_flush_tars(), locktrack_get_tars(), locktrack_id_looper(), locktrack_new_data(), loclike_evaluate(), loclike_flush_tars(), loclike_get_tars(), loclike_id_looper(), loclike_new_data(), loclimit_evaluate(), macro_wrapper(), make_new_animlistelem(), make_orco_mball(), makeDispListSurf(), makeFilesAbsolute(), makeFilesAbsolute_visit_cb(), makeFilesRelative(), makeFilesRelative_visit_cb(), mathutils_array_parse(), mathutils_array_parse_alloc(), mesh_circle_doSelectEdge(), mesh_circle_doSelectFace(), mesh_circle_doSelectVert(), mesh_circle_select(), mesh_edges_nearest_point(), mesh_faces_nearest_point(), mesh_faces_nearest_point_dp(), mesh_faces_spherecast(), mesh_faces_spherecast_dp(), mesh_foreachScreenEdge(), mesh_foreachScreenEdge__mapFunc(), mesh_foreachScreenFace(), mesh_foreachScreenFace__mapFunc(), mesh_foreachScreenVert(), mesh_foreachScreenVert__mapFunc(), minmax_evaluate(), minmax_flush_tars(), minmax_get_tars(), minmax_id_looper(), minmax_new_data(), multires_apply_smat(), multires_mdisp_smooth_bounds(), multiresbake_freejob(), multiresbake_startjob(), multiresModifier_disp_run(), multitest_event_handler(), newPackedFile(), no_joystick(), node_composit_exec_alphaover(), node_composit_exec_bilateralblur(), node_composit_exec_brightcontrast(), node_composit_exec_color_spill(), node_composit_exec_colorbalance(), node_composit_exec_combhsva(), node_composit_exec_combrgba(), node_composit_exec_combycca(), node_composit_exec_combyuva(), node_composit_exec_crop(), node_composit_exec_curves_time(), node_composit_exec_dilateerode(), node_composit_exec_displace(), node_composit_exec_doubleedgemask(), node_composit_exec_flip(), node_composit_exec_gamma(), node_composit_exec_hue_sat(), node_composit_exec_huecorrect(), node_composit_exec_idmask(), node_composit_exec_image(), node_composit_exec_invert(), node_composit_exec_map_value(), node_composit_exec_mapuv(), node_composit_exec_math(), node_composit_exec_movieclip(), node_composit_exec_normal(), node_composit_exec_normalize(), node_composit_exec_output_file(), node_composit_exec_premulkey(), node_composit_exec_rgbtobw(), node_composit_exec_rlayers(), node_composit_exec_rotate(), node_composit_exec_scale(), node_composit_exec_sephsva(), node_composit_exec_seprgba(), node_composit_exec_sepycca(), node_composit_exec_sepyuva(), node_composit_exec_setalpha(), node_composit_exec_stabilize2d(), node_composit_exec_texture(), node_composit_exec_tonemap(), node_composit_exec_transform(), node_composit_exec_translate(), node_composit_exec_valtorgb(), node_composit_exec_vecblur(), node_composit_exec_viewer(), node_composit_exec_zcombine(), node_shader_exec_material(), node_tex_pass_on(), non_recursive_bvh_div_nodes(), ntreeTexExecTree(), nurbs_to_mdata_customdb(), nurbscurve_circle_doSelect(), nurbscurve_circle_select(), object_solver_camera(), object_solver_inverted_matrix(), object_to_mesh(), objectsolver_clear_inverse_exec(), objectsolver_evaluate(), objectsolver_id_looper(), objectsolver_new_data(), objectsolver_set_inverse_exec(), KDL::Vector::operator()(), AnimationExporter::operator()(), KDL::Vector::operator=(), QBVH::pack_inner(), BVH::pack_instances(), QBVH::pack_leaf(), RegularBVH::pack_node(), panel_activate_state(), parent_set_exec(), pchan_autoik_adjust(), pchan_circle_doSelectJoint(), pchan_draw_IK_root_lines(), PE_border_select(), PE_circle_select(), PE_lasso_select(), PE_mouse_particles(), pivotcon_evaluate(), pivotcon_flush_tars(), pivotcon_get_tars(), pivotcon_id_looper(), pose_channel_in_IK_chain(), pose_circle_select(), pose_grab_with_ik_add(), pose_grab_with_ik_clear(), id_map< void *, Shader >::post_sync(), precalc_guides(), MD5Hash::process(), psys_render_projected_area(), psys_render_restore(), psys_render_set(), psys_render_simplify_distribution(), psys_render_simplify_params(), GHOST_SystemWin32::pushDragDropEvent(), GHOST_SystemWin32::putClipboard(), py_to_array(), pycon_evaluate(), pycon_free(), pycon_get_tarmat(), pycon_get_tars(), pycon_id_looper(), pycon_new_data(), pycon_relink(), pyrna_param_to_py(), pyrna_py_to_prop(), rbj_flush_tars(), rbj_get_tars(), rbj_id_looper(), rbj_new_data(), RE_rayobject_set_control(), RE_sample_material_color(), read_data_into_oldnewmap(), read_file_data(), RegularBVH::refit_node(), rekey_exec(), render_animation(), render_frame(), restoreTransObjects(), rna_listbase_lookup_int(), RNA_parameter_length_get_data(), RNA_parameter_list_create(), RNA_pointer_create(), rna_pointer_inherit_refine(), rotlike_evaluate(), rotlike_flush_tars(), rotlike_get_tars(), rotlike_id_looper(), rotlike_new_data(), rotlimit_evaluate(), run_python(), run_python_console(), samevolume_evaluate(), samevolume_new_data(), sculpt_search_sphere_cb(), select_less_exec(), select_linked_exec(), select_more_exec(), select_roots_exec(), select_tips_exec(), set_addons(), id_map< void *, Shader >::set_default(), set_end_frame(), set_engine(), set_extension(), set_image_type(), set_output(), set_scene(), set_skip_frame(), set_start_frame(), iTaSC::ConstraintSet::setControlParameter(), setCustomPoints(), setExecutableNodes(), AUD_SoftwareDevice::AUD_SoftwareHandle::setStopCallback(), AUD_JackDevice::setSyncCallback(), GHOST_SystemCarbon::sEventHandlerProc(), shape_key_mode_poll(), shape_key_poll(), shape_propagate(), shrinkwrap_flush_tars(), shrinkwrap_get_tars(), shrinkwrap_id_looper(), sizelike_evaluate(), sizelike_flush_tars(), sizelike_get_tars(), sizelike_id_looper(), sizelike_new_data(), sizelimit_evaluate(), slide_marker_modal(), special_aftertrans_update(), splineik_flush_tars(), splineik_free(), splineik_get_tars(), splineik_id_looper(), splineik_new_data(), strand_eval_point(), stretchto_evaluate(), stretchto_flush_tars(), stretchto_get_tars(), stretchto_id_looper(), stretchto_new_data(), stretchto_reset_exec(), subdivide_exec(), svm_node_geometry(), svm_node_geometry_bump_dx(), svm_node_geometry_bump_dy(), svm_node_tex_coord(), svm_node_tex_coord_bump_dx(), svm_node_tex_coord_bump_dy(), switch_endian_keyblock(), switch_endian_structs(), id_map< void *, Shader >::sync(), test_constraints(), tex_mat_set_face_mesh_cb(), tex_mat_set_texture_cb(), tex_space_mball(), text_refresh_pyconstraints_exec(), toggle_selection_cb(), track_set_exec(), tracking_segment_knot_cb(), trackto_evaluate(), trackto_flush_tars(), trackto_get_tars(), trackto_id_looper(), trackto_new_data(), transform_evaluate(), transform_flush_tars(), transform_get_tars(), transform_id_looper(), transform_new_data(), translike_flush_tars(), translike_get_tars(), translike_id_looper(), ui_button_active_free(), ui_context_button_active(), ui_do_animate(), ui_do_button(), ui_do_drag(), ui_handle_button_activate(), ui_handle_button_event(), ui_handle_button_return_submenu(), ui_handle_menu_return_submenu(), ui_handle_menus_recursive(), ui_handler_panel(), ui_handler_region_menu(), ui_searchbox_apply(), ui_searchbox_autocomplete(), ui_searchbox_create(), ui_searchbox_event(), ui_searchbox_inside(), ui_searchbox_region_draw_cb(), ui_searchbox_region_free_cb(), ui_searchbox_select(), ui_searchbox_update(), ui_tooltip_create(), ui_tooltip_region_draw_cb(), ui_tooltip_region_free_cb(), uiContextAnimUpdate(), uiFreeActiveButtons(), uiTemplateConstraint(), unique_editbone_name(), uniquename_unique_check(), unlink_movieclip(), unlink_text(), update_pose_constraint_flags(), validate_pyconstraint_cb(), KDL::Vector::Vector(), vertex_group_poll(), vertex_group_poll_edit(), vertex_group_poll_edit_or_wpaint_vert_select(), where_on_path(), windowdata_new(), wm_block_dialog_create(), WM_operator_props_dialog_popup(), wm_operator_ui_create(), WM_operator_ui_popup(), wm_operator_ui_popup_cancel(), wm_operator_ui_popup_ok(), write_constraints(), write_fmodifiers(), and write_renderinfo().
Definition at line 261 of file AUD_JOSResampleReader.cpp.