This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A Minimal Capture Program | |
This program opens an audio interface for capture, configures it for | |
stereo, 16 bit, 44.1kHz, interleaved conventional read/write | |
access. Then its reads a chunk of random data from it, and exits. It | |
isn't meant to be a real program. | |
From on Paul David's tutorial : http://equalarea.com/paul/alsa-audio.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A small example program using SQLite with C++ | |
#include <iostream> | |
#include <sqlite3.h> | |
using namespace std; | |
static int callback(void *NotUsed, int argc, char **argv, char **azColName) | |
{ | |
int i; | |
for(i=0; i<argc; i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ffmpeg_console.cpp : Defines the entry point for the console application. | |
// Change from doc\examples\avcodec.c | |
// | |
#include "stdafx.h" | |
#include <stdio.h> | |
#include <stdio.h> | |
#include <math.h> | |
extern "C"{ | |
#ifndef __STDC_CONSTANT_MACROS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NAT traversal system to let 2 computers behind firewall to communicate. | |
Example: | |
Client A (your machine) has public ip 1.1.1.1 | |
Client B (distant machine) has public ip 2.2.2.2 | |
You want to bind port 5556 on your machine | |
Distant Client want to bind port 5557 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include "Recorder.hpp" | |
namespace { | |
/** | |
* 処理に失敗していたら例外を投げる | |
* @param message エラーメッセージ | |
* @param result 処理の結果 | |
* @throws runtime_error 処理が失敗していた時 | |
*/ |