c++ Programming Glossary: buf_size
C++ - Play back a tone generated from a sinusoidal wave http://stackoverflow.com/questions/5469030/c-play-back-a-tone-generated-from-a-sinusoidal-wave freq 440.f int seconds 4 unsigned sample_rate 22050 size_t buf_size seconds sample_rate short samples samples new short buf_size.. seconds sample_rate short samples samples new short buf_size for int i 0 i buf_size i samples i 32760 sin 2.f float M_PI.. short samples samples new short buf_size for int i 0 i buf_size i samples i 32760 sin 2.f float M_PI freq sample_rate i Download..
Audio output with video processing with opencv http://stackoverflow.com/questions/8187745/audio-output-with-video-processing-with-opencv AVCodecContext aCodecCtx uint8_t audio_buf int buf_size static AVPacket pkt static uint8_t audio_pkt_data NULL static.. int len1 data_size for while audio_pkt_size 0 data_size buf_size len1 avcodec_decode_audio2 aCodecCtx int16_t audio_buf data_size.. AVCODEC_MAX_AUDIO_FRAME_SIZE 3 2 static unsigned int audio_buf_size 0 static unsigned int audio_buf_index 0 while len 0 if audio_buf_index..
tidy code for asynchronous IO http://stackoverflow.com/questions/883156/tidy-code-for-asynchronous-io constant length chunks async_read socket_ buffer some_buf buf_size boost bind run on_line_recieved this errorplacehplder void..
Decode audio and video and process both streams — ffmpeg, sdl, opencv http://stackoverflow.com/questions/9429342/decode-audio-and-video-and-process-both-streams-ffmpeg-sdl-opencv AVCodecContext aCodecCtx uint8_t audio_buf int buf_size static AVPacket pkt static uint8_t audio_pkt_data NULL static.. 0 int len1 data_size for while audio_pkt_size 0 data_size buf_size len1 avcodec_decode_audio3 aCodecCtx int16_t audio_buf data_size.. AVCODEC_MAX_AUDIO_FRAME_SIZE 3 2 static unsigned int audio_buf_size 0 static unsigned int audio_buf_index 0 while len 0 if audio_buf_index..
|