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 basic FFMpeg video player | |
// FFMpeg 2.2.2 | |
// SFML 2.1 | |
// XCode 5.1.1 | |
#include <SFML/Audio.hpp> | |
#include <SFML/Graphics.hpp> |
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 <windows.h> | |
#include <mmsystem.h> | |
#pragma comment(lib, "winmm.lib") | |
int main() | |
{ | |
HWAVEOUT hWaveOut = 0; | |
WAVEFORMATEX wfx = { WAVE_FORMAT_PCM, 1, 8000, 8000, 1, 8, 0 }; | |
waveOutOpen(&hWaveOut, WAVE_MAPPER, &wfx, 0, 0, CALLBACK_NULL); | |
char buffer[8000 * 60] = {}; |
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
/** | |
* Brian Anderson, Spring 2013 | |
* Com S 352, Assignment 7 | |
* | |
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
* INTRODUCTION & PURPOSE | |
* ------------------------------------------------------------------- | |
* Create a monitor library fashioned after the slides shown in class. | |
* It solves the producer/consumer problem by making sure their | |
* execution happens in a safe manner, even across multiple threads |
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 <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <cstring> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <cassert> | |
using namespace std; |
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
package org.tkassembled.xuggle; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
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
// MinBLEP Generation Code | |
// By Daniel Werner | |
// This Code Is Public Domain | |
#include <math.h> | |
#define PI 3.14159265358979f | |
// SINC Function | |
inline float SINC(float x) |
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 <termios.h> | |
#include <unistd.h> | |
char mygetch(void); | |
int main() | |
{ | |
/* | |
DRIVER SOURCE CODES HERE |
NewerOlder