Skip to content

Instantly share code, notes, and snippets.

View Themaister's full-sized avatar

Hans-Kristian Arntzen Themaister

View GitHub Profile
@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.
*/
vs.c: In function ‘roar_vs_ctl’:
vs.c:1692:8: error: ‘ROAR_VS_CMD_SET_ASYNC’ undeclared (first use in this function)
vs.c:1692:8: note: each undeclared identifier is reported only once for each function it appears in
vs.c:1695:8: error: ‘ROAR_VS_CMD_GET_ASYNC’ undeclared (first use in this function)
vs.c:1698:8: error: ‘ROAR_VS_CMD_LOCK_ASYNC’ undeclared (first use in this function)
vs.c:1706:8: error: ‘ROAR_VS_CMD_UNLOCK_ASYNC’ undeclared (first use in this function)
section .text
; Yay, we start off in 16-bit. Time for our journey to reach long-mode 64-bit.
[bits 16]
org 7c00h
jmp 0:start
start:
[bits 16]
org 7c00h
jmp 0:start
start:
xor ax, ax
mov ds, ax
mov eax, 80000000h
cpuid
org 7c00h
jmp 0:start
start:
xor ax, ax
mov ds, ax
mov eax, 80000000h
cpuid
cmp eax, 80000000h
jb no32