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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? patest_out_underflow.c

?? 一個(gè)開(kāi)源的sip源代碼
?? C
字號(hào):
/** @file patest_out_underflow.c	@ingroup test_src	@brief Count output underflows (using paOutputUnderflow flag) 	under overloaded and normal conditions.	@author Ross Bencina <rossb@audiomulch.com>	@author Phil Burk <philburk@softsynth.com>*//* * $Id: patest_out_underflow.c 1097 2006-08-26 08:27:53Z rossb $ * * This program uses the PortAudio Portable Audio Library. * For more information see: http://www.portaudio.com * Copyright (c) 1999-2004 Ross Bencina and Phil Burk * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, * publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *//* * The text above constitutes the entire PortAudio license; however,  * the PortAudio community also makes the following non-binding requests: * * Any person wishing to distribute modifications to the Software is * requested to send the modifications to the original developer so that * they can be incorporated into the canonical version. It is also  * requested that these non-binding requests be included along with the  * license above. */#include <stdio.h>#include <math.h>#include "portaudio.h"#define MAX_SINES     (500)#define MAX_LOAD      (1.2)#define SAMPLE_RATE   (44100)#define FRAMES_PER_BUFFER  (512)#ifndef M_PI#define M_PI  (3.14159265)#endif#define TWOPI (M_PI * 2.0)typedef struct paTestData{    int sineCount;    double phases[MAX_SINES];    int countUnderflows;    int outputUnderflowCount;}paTestData;/* This routine will be called by the PortAudio engine when audio is needed.** It may called at interrupt level on some machines so don't do anything** that could mess up the system like calling malloc() or free().*/static int patestCallback( const void *inputBuffer, void *outputBuffer,                           unsigned long framesPerBuffer,                           const PaStreamCallbackTimeInfo* timeInfo,                           PaStreamCallbackFlags statusFlags,                           void *userData ){    paTestData *data = (paTestData*)userData;    float *out = (float*)outputBuffer;    unsigned long i;    int j;    int finished = paContinue;    (void) timeInfo;    /* Prevent unused variable warning. */    (void) inputBuffer; /* Prevent unused variable warning. */    if( data->countUnderflows && (statusFlags & paOutputUnderflow) )        data->outputUnderflowCount++;    for( i=0; i<framesPerBuffer; i++ )    {        float output = 0.0;        double phaseInc = 0.02;        double phase;        for( j=0; j<data->sineCount; j++ )        {            /* Advance phase of next oscillator. */            phase = data->phases[j];            phase += phaseInc;            if( phase > TWOPI ) phase -= TWOPI;            phaseInc *= 1.02;            if( phaseInc > 0.5 ) phaseInc *= 0.5;            /* This is not a very efficient way to calc sines. */            output += (float) sin( phase );            data->phases[j] = phase;        }        *out++ = (float) (output / data->sineCount);    }    return finished;}/*******************************************************************/int main(void);int main(void){    PaStreamParameters outputParameters;    PaStream *stream;    PaError err;    int safeSineCount, stressedSineCount;    int safeUnderflowCount, stressedUnderflowCount;    paTestData data = {0};    double load;    printf("PortAudio Test: output sine waves, count underflows. SR = %d, BufSize = %d. MAX_LOAD = %f\n",        SAMPLE_RATE, FRAMES_PER_BUFFER, (float)MAX_LOAD );    err = Pa_Initialize();    if( err != paNoError ) goto error;        outputParameters.device = Pa_GetDefaultOutputDevice();  /* default output device */    outputParameters.channelCount = 1;                      /* mono output */    outputParameters.sampleFormat = paFloat32;              /* 32 bit floating point output */    outputParameters.suggestedLatency = Pa_GetDeviceInfo( outputParameters.device )->defaultLowOutputLatency;    outputParameters.hostApiSpecificStreamInfo = NULL;    err = Pa_OpenStream(              &stream,              NULL,         /* no input */              &outputParameters,              SAMPLE_RATE,              FRAMES_PER_BUFFER,              paClipOff,    /* we won't output out of range samples so don't bother clipping them */              patestCallback,              &data );        if( err != paNoError ) goto error;    err = Pa_StartStream( stream );    if( err != paNoError ) goto error;    printf("Establishing load conditions...\n" );    /* Determine number of sines required to get to 50% */    do    {        data.sineCount++;        Pa_Sleep( 100 );        load = Pa_GetStreamCpuLoad( stream );        printf("sineCount = %d, CPU load = %f\n", data.sineCount, load );    }    while( load < 0.5 && data.sineCount < (MAX_SINES-1));    safeSineCount = data.sineCount;    /* Calculate target stress value then ramp up to that level*/    stressedSineCount = (int) (2.0 * data.sineCount * MAX_LOAD );    if( stressedSineCount > MAX_SINES )        stressedSineCount = MAX_SINES;    for( ; data.sineCount < stressedSineCount; data.sineCount++ )    {        Pa_Sleep( 100 );        load = Pa_GetStreamCpuLoad( stream );        printf("STRESSING: sineCount = %d, CPU load = %f\n", data.sineCount, load );    }        printf("Counting underflows for 5 seconds.\n");    data.countUnderflows = 1;    Pa_Sleep( 5000 );    stressedUnderflowCount = data.outputUnderflowCount;    data.countUnderflows = 0;    data.sineCount = safeSineCount;    printf("Resuming safe load...\n");    Pa_Sleep( 1500 );    data.outputUnderflowCount = 0;    Pa_Sleep( 1500 );    load = Pa_GetStreamCpuLoad( stream );    printf("sineCount = %d, CPU load = %f\n", data.sineCount, load );    printf("Counting underflows for 5 seconds.\n");    data.countUnderflows = 1;    Pa_Sleep( 5000 );    safeUnderflowCount = data.outputUnderflowCount;        printf("Stop stream.\n");    err = Pa_StopStream( stream );    if( err != paNoError ) goto error;        err = Pa_CloseStream( stream );    if( err != paNoError ) goto error;        Pa_Terminate();    if( stressedUnderflowCount == 0 )        printf("Test failed, no output underflows detected under stress.\n");    else if( safeUnderflowCount != 0 )        printf("Test failed, %d unexpected underflows detected under safe load.\n", safeUnderflowCount);    else        printf("Test passed, %d expected output underflows detected under stress, 0 unexpected underflows detected under safe load.\n", stressedUnderflowCount );    return err;error:    Pa_Terminate();    fprintf( stderr, "An error occured while using the portaudio stream\n" );    fprintf( stderr, "Error number: %d\n", err );    fprintf( stderr, "Error message: %s\n", Pa_GetErrorText( err ) );    return err;}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月天一区二区| 免费视频最近日韩| 精品国精品国产| 91在线视频官网| 久久99国产精品久久99果冻传媒| 国产精品免费丝袜| 日韩区在线观看| 欧美色视频一区| av电影在线观看完整版一区二区| 日韩成人一区二区三区在线观看| 国产精品大尺度| 久久这里只有精品视频网| 欧美日韩电影在线| 91黄色在线观看| 岛国一区二区三区| 国产乱码精品一区二区三区av | 国产精品超碰97尤物18| 欧美一卡2卡三卡4卡5免费| 日本韩国欧美在线| 波波电影院一区二区三区| 精品一区二区三区日韩| 午夜激情久久久| 一区二区三区四区蜜桃| 亚洲欧洲精品一区二区三区不卡| 精品久久久久久无| 精品少妇一区二区三区在线视频| 欧美视频一区二区三区在线观看| 91免费观看国产| 99视频精品全部免费在线| 国产成人免费网站| 国产一区二区成人久久免费影院 | 日本精品裸体写真集在线观看| 国产成人自拍高清视频在线免费播放| 日韩av成人高清| 亚洲va在线va天堂| 亚洲一区二区三区在线播放| 亚洲天堂福利av| 国产精品第四页| 亚洲色欲色欲www在线观看| 国产欧美精品在线观看| 久久久影视传媒| 久久久精品免费观看| 久久蜜桃av一区二区天堂 | 国产在线一区二区| 韩国理伦片一区二区三区在线播放| 琪琪久久久久日韩精品| 琪琪久久久久日韩精品| 久久国产精品色| 国产一区二区三区视频在线播放| 国产一区二区三区免费播放| 国产激情偷乱视频一区二区三区| 国产一区日韩二区欧美三区| 国产激情一区二区三区桃花岛亚洲| 国产激情一区二区三区桃花岛亚洲| 国产suv一区二区三区88区| 大胆欧美人体老妇| 色系网站成人免费| 欧美女孩性生活视频| 欧美第一区第二区| 欧美国产成人精品| 亚洲精品伦理在线| 日本不卡一区二区三区高清视频| 另类综合日韩欧美亚洲| 成人一道本在线| 欧美午夜精品电影| 日韩精品一区二区三区视频| 久久色在线观看| 亚洲日本一区二区| 日韩福利视频网| 国产激情视频一区二区在线观看| 91在线精品秘密一区二区| 欧美日韩视频在线第一区 | 亚洲日本丝袜连裤袜办公室| 亚洲第一激情av| 精品一区二区成人精品| 成人黄色av电影| 欧美日韩精品欧美日韩精品一| 日韩欧美的一区| 国产精品久久久久四虎| 亚洲午夜精品网| 国产一区二区三区蝌蚪| 91污片在线观看| 日韩精品在线看片z| 中文字幕亚洲精品在线观看| 日韩不卡在线观看日韩不卡视频| 国产91露脸合集magnet| 欧美偷拍一区二区| 久久久久久一级片| 亚洲国产综合色| 高清视频一区二区| 欧美精品少妇一区二区三区| 国产欧美日韩精品在线| 五月开心婷婷久久| 大白屁股一区二区视频| 欧美日韩极品在线观看一区| 久久无码av三级| 日产国产欧美视频一区精品| 91香蕉视频mp4| 久久九九久久九九| 日本麻豆一区二区三区视频| 91麻豆高清视频| 国产清纯美女被跳蛋高潮一区二区久久w| 亚洲激情av在线| 国产河南妇女毛片精品久久久| 欧美日本不卡视频| 亚洲精品v日韩精品| 国产成人av电影在线观看| 欧美喷潮久久久xxxxx| 亚洲老妇xxxxxx| 粉嫩av一区二区三区| 欧美xxxxx牲另类人与| 亚州成人在线电影| 91麻豆国产福利在线观看| 亚洲国产精品激情在线观看| 日日嗨av一区二区三区四区| 91久久精品一区二区三区| 国产精品九色蝌蚪自拍| 国产精品一区二区视频| 欧美成人video| 蜜桃在线一区二区三区| 欧美久久久一区| 香蕉久久夜色精品国产使用方法| 一本到高清视频免费精品| 国产精品青草综合久久久久99| 国产美女主播视频一区| 精品久久久久久综合日本欧美 | 久久99热狠狠色一区二区| 91精品国产91热久久久做人人| 亚洲精品欧美二区三区中文字幕| 成人av资源网站| 国产精品免费久久| 成人毛片视频在线观看| 久久久久一区二区三区四区| 国产在线不卡一区| 久久综合国产精品| 国产成人一区二区精品非洲| 久久久久一区二区三区四区| 国产综合色精品一区二区三区| 精品福利在线导航| 国产成人免费在线观看不卡| 国产色一区二区| 成人精品视频一区二区三区尤物| 国产调教视频一区| 成人ar影院免费观看视频| 最近日韩中文字幕| 欧美影院精品一区| 日韩综合在线视频| 日韩视频在线你懂得| 黄色精品一二区| 中文字幕乱码亚洲精品一区| av电影在线观看完整版一区二区| **网站欧美大片在线观看| 在线观看国产精品网站| 亚洲成年人影院| 日韩欧美www| 成人午夜视频福利| 日韩毛片一二三区| 欧美三级电影精品| 精品制服美女久久| 国产精品久久午夜夜伦鲁鲁| 色老汉一区二区三区| 日韩影院在线观看| 国产欧美日韩亚州综合 | 欧美主播一区二区三区| 亚洲图片欧美色图| 精品免费一区二区三区| 波多野结衣在线一区| 亚洲亚洲人成综合网络| 日韩亚洲欧美在线观看| 高清shemale亚洲人妖| 亚洲精品日韩综合观看成人91| 欧美老肥妇做.爰bbww| 国产自产v一区二区三区c| 成人欧美一区二区三区1314| 精品视频一区 二区 三区| 韩国av一区二区| 亚洲免费色视频| 日韩一区二区不卡| www.激情成人| 日本在线不卡视频| 国产精品久久久久婷婷| 日韩一区二区在线免费观看| 国产黄色精品网站| 亚洲国产欧美在线| 国产欧美一区二区精品秋霞影院| 欧美视频一区在线| 成人精品gif动图一区| 日韩精品国产欧美| 国产精品福利影院| 精品国产3级a| 欧美三级日本三级少妇99| 国产91露脸合集magnet| 亚洲不卡av一区二区三区| 欧美韩日一区二区三区四区| 欧美精品日日鲁夜夜添| 99久久99久久综合| 韩国理伦片一区二区三区在线播放| 亚洲一区二区三区激情| 国产精品久久久久久久岛一牛影视| 欧美福利一区二区|