亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? headphone.c

?? video linux conference
?? C
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************** * headphone.c : headphone virtual spatialization channel mixer module *               -> gives the feeling of a real room with a simple headphone ***************************************************************************** * Copyright (C) 2002 VideoLAN * $Id: headphone.c 10112 2005-03-03 06:58:04Z zorglub $ * * Authors: Boris Dor鑣 <babal@via.ecp.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************//***************************************************************************** * Preamble *****************************************************************************/#include <stdlib.h>                                      /* malloc(), free() */#include <string.h>#include <math.h>                                        /* sqrt */#include <vlc/vlc.h>#include "audio_output.h"#include "aout_internal.h"/***************************************************************************** * Local prototypes *****************************************************************************/static int  Create    ( vlc_object_t * );static void Destroy   ( vlc_object_t * );static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,                        aout_buffer_t * );/***************************************************************************** * Module descriptor *****************************************************************************/#define MODULE_DESCRIPTION N_ ( \     "This effect gives you the feeling that you are standing in a room " \     "with a complete 5.1 speaker set when using only a headphone, " \     "providing a more realistic sound experience. It should also be " \     "more comfortable and less tiring when listening to music for " \     "long periods of time.\nIt works with any source format from mono " \     "to 5.1.")#define HEADPHONE_DIM_TEXT N_("Characteristic dimension")#define HEADPHONE_DIM_LONGTEXT N_( \     "Distance between front left speaker and listener in meters.")vlc_module_begin();    set_description( N_("Headphone channel mixer with virtual spatialization effect") );    set_shortname( _("Headphone effect") );    set_category( CAT_AUDIO );    set_subcategory( SUBCAT_AUDIO_AFILTER );    add_integer( "headphone-dim", 10, NULL, HEADPHONE_DIM_TEXT,                 HEADPHONE_DIM_LONGTEXT, VLC_FALSE );    set_capability( "audio filter", 0 );    set_callbacks( Create, Destroy );    add_shortcut( "headphone" );vlc_module_end();/***************************************************************************** * Internal data structures *****************************************************************************/struct atomic_operation_t{    int i_source_channel_offset;    int i_dest_channel_offset;    unsigned int i_delay;/* in sample unit */    double d_amplitude_factor;};struct aout_filter_sys_t{    size_t i_overflow_buffer_size;/* in bytes */    byte_t * p_overflow_buffer;    unsigned int i_nb_atomic_operations;    struct atomic_operation_t * p_atomic_operations;};/***************************************************************************** * Init: initialize internal data structures * and computes the needed atomic operations *****************************************************************************//* x and z represent the coordinates of the virtual speaker *  relatively to the center of the listener's head, measured in meters : * *  left              right *Z *- *a          head *x *i *s *  rear left    rear right * *          x-axis *  */static void ComputeChannelOperations ( struct aout_filter_sys_t * p_data        , unsigned int i_rate , unsigned int i_next_atomic_operation        , int i_source_channel_offset , double d_x , double d_z        , double d_channel_amplitude_factor ){    double d_c = 340; /*sound celerity (unit: m/s)*/    /* Left ear */    p_data->p_atomic_operations[i_next_atomic_operation]        .i_source_channel_offset = i_source_channel_offset;    p_data->p_atomic_operations[i_next_atomic_operation]        .i_dest_channel_offset = 0;/* left */    p_data->p_atomic_operations[i_next_atomic_operation]        .i_delay = (int)( sqrt( (-0.1-d_x)*(-0.1-d_x) + (0-d_z)*(0-d_z) )                          / d_c * i_rate );    if ( d_x < 0 )    {        p_data->p_atomic_operations[i_next_atomic_operation]            .d_amplitude_factor = d_channel_amplitude_factor * 1.1 / 2;    }    else if ( d_x > 0 )    {        p_data->p_atomic_operations[i_next_atomic_operation]            .d_amplitude_factor = d_channel_amplitude_factor * 0.9 / 2;    }    else    {        p_data->p_atomic_operations[i_next_atomic_operation]            .d_amplitude_factor = d_channel_amplitude_factor / 2;    }    /* Right ear */    p_data->p_atomic_operations[i_next_atomic_operation + 1]        .i_source_channel_offset = i_source_channel_offset;    p_data->p_atomic_operations[i_next_atomic_operation + 1]        .i_dest_channel_offset = 1;/* right */    p_data->p_atomic_operations[i_next_atomic_operation + 1]        .i_delay = (int)( sqrt( (0.1-d_x)*(0.1-d_x) + (0-d_z)*(0-d_z) )                          / d_c * i_rate );    if ( d_x < 0 )    {        p_data->p_atomic_operations[i_next_atomic_operation + 1]            .d_amplitude_factor = d_channel_amplitude_factor * 0.9 / 2;    }    else if ( d_x > 0 )    {        p_data->p_atomic_operations[i_next_atomic_operation + 1]            .d_amplitude_factor = d_channel_amplitude_factor * 1.1 / 2;    }    else    {        p_data->p_atomic_operations[i_next_atomic_operation + 1]            .d_amplitude_factor = d_channel_amplitude_factor / 2;    }}static int Init ( aout_filter_t * p_filter , struct aout_filter_sys_t * p_data        , unsigned int i_nb_channels , uint32_t i_physical_channels        , unsigned int i_rate ){    double d_x = config_GetInt ( p_filter , "headphone-dim" );    double d_z = d_x;    double d_z_rear = -d_x/3;    unsigned int i_next_atomic_operation;    int i_source_channel_offset;    unsigned int i;    if ( p_data == NULL )    {        msg_Dbg ( p_filter, "passing a null pointer as argument" );        return 0;    }    /* Number of elementary operations */    p_data->i_nb_atomic_operations = i_nb_channels * 2;    p_data->p_atomic_operations = malloc ( sizeof(struct atomic_operation_t)            * p_data->i_nb_atomic_operations );    if ( p_data->p_atomic_operations == NULL )    {        msg_Err( p_filter, "out of memory" );        return -1;    }    /* For each virtual speaker, computes elementary wave propagation time     * to each ear */    i_next_atomic_operation = 0;    i_source_channel_offset = 0;    if ( i_physical_channels & AOUT_CHAN_LEFT )    {        ComputeChannelOperations ( p_data , i_rate                , i_next_atomic_operation , i_source_channel_offset                , -d_x , d_z , 2.0 / i_nb_channels );        i_next_atomic_operation += 2;        i_source_channel_offset++;    }    if ( i_physical_channels & AOUT_CHAN_RIGHT )    {        ComputeChannelOperations ( p_data , i_rate                , i_next_atomic_operation , i_source_channel_offset                , d_x , d_z , 2.0 / i_nb_channels );        i_next_atomic_operation += 2;        i_source_channel_offset++;    }    if ( i_physical_channels & AOUT_CHAN_REARLEFT )    {        ComputeChannelOperations ( p_data , i_rate                , i_next_atomic_operation , i_source_channel_offset                , -d_x , d_z_rear , 1.5 / i_nb_channels );        i_next_atomic_operation += 2;        i_source_channel_offset++;    }    if ( i_physical_channels & AOUT_CHAN_REARRIGHT )    {        ComputeChannelOperations ( p_data , i_rate                , i_next_atomic_operation , i_source_channel_offset                , d_x , d_z_rear , 1.5 / i_nb_channels );        i_next_atomic_operation += 2;        i_source_channel_offset++;    }    if ( i_physical_channels & AOUT_CHAN_REARCENTER )    {        ComputeChannelOperations ( p_data , i_rate                , i_next_atomic_operation , i_source_channel_offset                , 0 , -d_z , 1.5 / i_nb_channels );        i_next_atomic_operation += 2;        i_source_channel_offset++;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲丝袜传媒另类| 色综合一区二区| 欧美综合亚洲图片综合区| 日韩天堂在线观看| 亚洲精品综合在线| 国产在线观看一区二区| 欧美一区二区国产| 一区二区三区四区亚洲| 国产91丝袜在线观看| 午夜久久久久久| 91在线视频网址| 亚洲婷婷在线视频| 日韩福利电影在线| 色悠悠亚洲一区二区| 欧美激情艳妇裸体舞| 九九久久精品视频| 成人精品免费网站| 精品一区二区免费在线观看| 精品无人码麻豆乱码1区2区 | 亚洲综合激情另类小说区| 亚洲日本va在线观看| 亚洲综合在线五月| 日韩成人dvd| 国产精品亚洲成人| 色综合 综合色| 制服.丝袜.亚洲.中文.综合| 欧美一二三区在线观看| 国产日韩欧美麻豆| 亚洲欧美国产毛片在线| 日韩精品三区四区| 国内久久精品视频| 色综合视频在线观看| 91超碰这里只有精品国产| 精品少妇一区二区三区| 中文字幕免费不卡在线| 亚洲国产精品自拍| 激情小说欧美图片| www.视频一区| 欧美剧情片在线观看| 久久综合九色欧美综合狠狠| 亚洲精品成人a在线观看| 免费在线观看一区二区三区| 国产激情视频一区二区三区欧美| 99久久国产综合精品女不卡 | 亚洲美女一区二区三区| 日韩国产在线一| 国产精品亚洲一区二区三区在线| 99久久综合精品| 在线不卡欧美精品一区二区三区| 久久精品网站免费观看| 一区二区三区四区高清精品免费观看 | 在线播放一区二区三区| 国产亚洲精品bt天堂精选| 一区二区三区四区乱视频| 精品一区二区三区免费毛片爱| 91视视频在线观看入口直接观看www| 欧美日本一区二区三区四区| 久久精品这里都是精品| 亚洲电影你懂得| 成人黄色小视频在线观看| 91麻豆精品国产91久久久久久久久| 国产农村妇女毛片精品久久麻豆| 亚洲在线中文字幕| 成人免费毛片片v| 欧美一区2区视频在线观看| 亚洲乱码国产乱码精品精可以看 | 成人黄色软件下载| 精品日产卡一卡二卡麻豆| 亚洲精品乱码久久久久| 国产一区二区电影| 欧美三电影在线| 国产女主播视频一区二区| 另类人妖一区二区av| 欧美色网一区二区| 国产亚洲制服色| 日韩二区三区在线观看| 在线视频你懂得一区二区三区| 国产亚洲精品7777| 激情综合网av| 欧美一区永久视频免费观看| 亚洲图片一区二区| 一本色道a无线码一区v| 欧美国产一区二区在线观看 | 欧美色图在线观看| 亚洲色图清纯唯美| 风间由美一区二区三区在线观看 | 日韩美女在线视频| 午夜精品久久久久久久| 日本福利一区二区| 一区二区三区中文字幕| 91丝袜国产在线播放| 中文字幕va一区二区三区| 国产成人综合视频| 久久久精品黄色| 精品一区二区免费| 精品国免费一区二区三区| 日本不卡一区二区三区| 555夜色666亚洲国产免| 亚洲va国产天堂va久久en| 欧洲视频一区二区| 一区二区三区91| 欧美在线观看视频一区二区| 樱花草国产18久久久久| 精品国产乱码久久久久久浪潮| 午夜激情一区二区| 这里只有精品视频在线观看| 午夜a成v人精品| 777奇米四色成人影色区| 日韩中文字幕亚洲一区二区va在线 | 蜜臀久久99精品久久久画质超高清| 欧美日本一区二区三区四区| 亚洲超丰满肉感bbw| 欧美二区在线观看| 久久er99精品| 久久综合九色欧美综合狠狠| 国产成人在线视频网站| 亚洲国产精品传媒在线观看| 不卡视频一二三四| 中文字幕制服丝袜一区二区三区| 99国产精品一区| 亚洲国产毛片aaaaa无费看| 欧美一区日本一区韩国一区| 美女诱惑一区二区| 中文无字幕一区二区三区| 91在线精品一区二区三区| 亚洲精品视频在线观看免费| 欧美日本一区二区在线观看| 久久国产视频网| 国产精品久久久久影院亚瑟| 在线亚洲一区二区| 青青草国产精品97视觉盛宴| 亚洲精品一区二区三区香蕉| 成人a免费在线看| 亚洲综合激情小说| 精品国产亚洲一区二区三区在线观看| 国产福利精品导航| 夜夜精品浪潮av一区二区三区| 日韩欧美自拍偷拍| 成人免费av资源| 五月天亚洲精品| 久久免费看少妇高潮| 日本韩国精品在线| 精品一区二区三区久久| 亚洲男人都懂的| 日韩视频免费观看高清在线视频| 国产激情91久久精品导航| 亚洲一区欧美一区| 久久精品亚洲麻豆av一区二区| 一本色道综合亚洲| 国内外成人在线视频| 亚洲乱码国产乱码精品精小说| 日韩美女在线视频| 色综合久久88色综合天天 | 色94色欧美sute亚洲线路一ni | 99精品偷自拍| 蜜臀精品一区二区三区在线观看 | 国产精品久久久久aaaa| 911国产精品| www.av精品| 久久精品国产成人一区二区三区| 中文字幕亚洲一区二区va在线| 欧美一级日韩一级| 色综合久久中文字幕| 精品无人码麻豆乱码1区2区 | 色视频一区二区| 国产美女一区二区三区| 亚洲一区二区三区视频在线| 久久精品免费在线观看| 欧美一级精品在线| 欧洲av一区二区嗯嗯嗯啊| 国产成人亚洲精品青草天美| 日本中文字幕一区二区有限公司| 亚洲视频免费看| 欧美成人精品福利| 欧美日韩黄色一区二区| 99久久婷婷国产精品综合| 国产伦精品一区二区三区免费迷| 亚洲一区二区三区激情| 一区二区中文视频| 国产日韩欧美综合在线| 日韩精品一区二区三区三区免费| 欧洲一区二区三区在线| 99精品桃花视频在线观看| 国产精品小仙女| 国产原创一区二区三区| 欧美aaaaaa午夜精品| 亚洲成人免费电影| 伊人夜夜躁av伊人久久| 亚洲天堂av一区| 18涩涩午夜精品.www| 欧美极品少妇xxxxⅹ高跟鞋 | 综合电影一区二区三区| 国产午夜三级一区二区三| 日韩写真欧美这视频| 制服视频三区第一页精品| 欧美日韩和欧美的一区二区| 色婷婷久久一区二区三区麻豆| eeuss鲁一区二区三区| 成人永久看片免费视频天堂| 国产真实精品久久二三区|