Skip to content

Instantly share code, notes, and snippets.

View Themaister's full-sized avatar

Hans-Kristian Arntzen Themaister

View GitHub Profile
<html>
<head>
<title>WebGL test ...</title>
</head>
<body onload="webGLStart();">
<p>Hai! :D WebGL test ...</p>
<canvas id="test_canvas" style="border: none" width="640" height="480"></canvas>
</body>
<html>
<head>
<title>WebGL test ...</title>
</head>
<body onload="webGLStart();">
<p>Hai! :D WebGL test ...</p>
<canvas id="test_canvas" style="border: none" width="640" height="480"></canvas>
</body>
diff -Naur bass-old/arch/snes-cpu/snes-cpu.cpp bass/arch/snes-cpu/snes-cpu.cpp
--- bass-old/arch/snes-cpu/snes-cpu.cpp 2011-09-11 11:15:29.484243021 +0200
+++ bass/arch/snes-cpu/snes-cpu.cpp 2011-09-11 11:17:20.210914970 +0200
@@ -31,19 +31,22 @@
auto isbyte = [this]() {
if(param.wildcard("$????") || param.wildcard("$??????")) return false;
- if(!priority && param[0] != '<' && !param.wildcard("$??")) return false;
+ if(param.wildcard("0x????") || param.wildcard("0x??????")) return false;
+ if(!priority && param[0] != '<' && !param.wildcard("$??") && !param.wildcard("0x??")) return false;
<?xml version="1.0" encoding="UTF-8"?>
<shader language="GLSL">
<vertex><![CDATA[
void main()
{
gl_Position = ftransform();
gl_TexCoord[0] = gl_MultiTexCoord0;
}
@Themaister
Themaister / gist:1154721
Created August 18, 2011 18:12
BSV demuxer for FFmpeg
diff --git a/configure b/configure
index 26f6d21..06279f5 100755
--- a/configure
+++ b/configure
@@ -160,6 +160,7 @@ Configuration options:
External library support:
--enable-avisynth enable reading of AVISynth script files [no]
+ --enable-bsv enable reading of BSNES movie files [no]
--enable-bzlib enable bzlib [autodetect]
From b027713ef8ccc7f1150484ec42bf2628764ac5e7 Mon Sep 17 00:00:00 2001
From: Themaister <[email protected]>
Date: Wed, 17 Aug 2011 22:03:32 +0200
Subject: [PATCH] Use events in XAudio2 for more sane syncing.
---
bsnes/ruby/audio/xaudio2.cpp | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/bsnes/ruby/audio/xaudio2.cpp b/bsnes/ruby/audio/xaudio2.cpp
From 35cac049f73f1cb0949e7d7f20206a40a19a201f Mon Sep 17 00:00:00 2001
From: Hans-Kristian Arntzen <[email protected]>
Date: Sun, 26 Jun 2011 01:21:25 +0200
Subject: [PATCH] Update manpage for RSound.
---
DOCS/man/en/mplayer.1 | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
From 35cac049f73f1cb0949e7d7f20206a40a19a201f Mon Sep 17 00:00:00 2001
From: Hans-Kristian Arntzen <[email protected]>
Date: Sun, 26 Jun 2011 01:21:25 +0200
Subject: [PATCH] Update manpage for RSound.
---
DOCS/man/en/mplayer.1 | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
SYNC: f_conf=96000Hz, f_real=4281553408.00Hz diff=+4459851.500%
SYNC: f_conf=96000Hz, f_real=96537.98Hz diff=+0.560%
SYNC: f_conf=96000Hz, f_real=96039.28Hz diff=+0.041%
SYNC: f_conf=96000Hz, f_real=95954.97Hz diff=-0.047%
SYNC: f_conf=96000Hz, f_real=96039.53Hz diff=+0.041%
SYNC: f_conf=96000Hz, f_real=95955.47Hz diff=-0.046%
SYNC: f_conf=96000Hz, f_real=96038.43Hz diff=+0.040%
SYNC: f_conf=96000Hz, f_real=95955.84Hz diff=-0.046%
SYNC: f_conf=96000Hz, f_real=96038.72Hz diff=+0.040%
SYNC: f_conf=96000Hz, f_real=95956.13Hz diff=-0.046%
if (autosync) {
/*
* Adjust this raw delay value by calculating the expected
* delay for this frame and generating a new value which is
* weighted between the two. The higher autosync is, the
* closer to the delay value gets to that which "-nosound"
* would have used, and the longer it will take for A/V
* sync to settle at the right value (but it eventually will.)
* This settling time is very short for values below 100.
*/