Skip to content

Instantly share code, notes, and snippets.

@nickdiego
nickdiego / webaudio-rendering-loop_-_sequence-diagram
Created July 19, 2013 00:42
Webaudio rendering loop sequence diagram Editor: http://www.ckwnc.com
:Gstreamer
:WebKitWebAudioSourceGStreamer
:AudioDestinationNix
"destination->m_inputFifo": AudioFIFO
"destination->m_fifo": AudioPullFIFO
wrapperBus: AudioBus
m_renderBus: AudioBus
:DefaultAudioDestinationNode
:"AudioDestinationNode::LocalAudioInputProvider"
:AudioNodeInput
<html>
<head></head>
<body>
<script>
var audioContext;
var audioURL = "http://localhost:8000/basic-tests/chicken.ogg";
function loadSound(url, callback) {
var request = new XMLHttpRequest();
<html>
<body>
<script>
document.write("Trying to get a Stream Audio...</br>");
navigator.webkitGetUserMedia({ "audio": true, "video": false }, gotStream, logError);
function gotStream (stream) {
document.write("Got a Stream Audio!</br>");
window.AudioContext = window.webkitAudioContext;
var audioContext = new AudioContext();
@nickdiego
nickdiego / gist:6215496
Last active December 20, 2015 23:49
with GST_DEBUG=2
****** input pipeline is ready
** (WebProcess:18856): WARNING **: Input Ready, starting main pipeline...
** (WebProcess:18856): WARNING **: webAudioSrc: READY->PAUSED
** (WebProcess:18856): WARNING **: webAudioSrc: PAUSED->PLAYING
0:00:00.785976198 18856 0x1457930 WARN bin gstbin.c:2399:gst_bin_do_latency_func:<live-input> failed to query latency
0:00:00.786156264 18856 0x7f0990003280 WARN bin gstbin.c:2395:gst_bin_do_latency_func:<filereader> did not really configure latency of 0:00:00.000000000
0:00:01.013733282 18856 0x7f0990003280 WARN interleave interleave.c:1106:forward_event_func:<interleave0:sink1> Sending event 0x7f09580025e0 (latency) failed.
static GstElement* findDeviceSource(GstElement* autoSrc)
{
GstElement* deviceSrc;
GstChildProxy* childProxy = GST_CHILD_PROXY(autoSrc);
if (!childProxy)
return deviceSrc;
GstStateChangeReturn stateChangeResult = gst_element_set_state(autoSrc, GST_STATE_READY);
if (stateChangeResult != GST_STATE_CHANGE_SUCCESS)
return deviceSrc;
diff --git a/Source/WebCore/PlatformNix.cmake b/Source/WebCore/PlatformNix.cmake
index 883f373..2186451 100644
--- a/Source/WebCore/PlatformNix.cmake
+++ b/Source/WebCore/PlatformNix.cmake
@@ -256,6 +256,9 @@ if (ENABLE_VIDEO)
list(APPEND WebCore_LIBRARIES
${GSTREAMER_VIDEO_LIBRARIES}
)
+
+ # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
@nickdiego
nickdiego / gist:7126198
Created October 23, 2013 20:34
get-user-media_-_sequence-diagram
app : "Javascript code"
: NavigatorUserMediaSuccessCallback
navigator : NavigatorMediaStream
controller: UserMediaController
: "WebCore::Page"
request : UserMediaRequest
: MediaStreamCenter
: "Nix::MediaStreamSourcesQueryClient"
: "Nix::MediaStreamCenter"
: MediaStreamSource
#0 0x00007ffff43e7b05 in WTFCrash () at /home/nick/projects/webkit-nix/src/nix/Source/WTF/wtf/Assertions.cpp:341
#1 0x00007ffff2cedf36 in JSC::Heap::allocateWithImmortalStructureDestructor (this=0x8908d8, bytes=112) at /home/nick/projects/webkit-nix/src/nix/Source/JavaScriptCore/heap/Heap.h:418
#2 0x00007ffff36f472b in JSC::allocateCell<JSC::Structure> (heap=..., size=112) at /home/nick/projects/webkit-nix/src/nix/Source/JavaScriptCore/runtime/JSCellInlines.h:97
#3 0x00007ffff36f413c in JSC::allocateCell<JSC::Structure> (heap=...) at /home/nick/projects/webkit-nix/src/nix/Source/JavaScriptCore/runtime/JSCellInlines.h:109
#4 0x00007ffff36f3b20 in JSC::Structure::create (vm=..., globalObject=0x7ffff7e8f970, prototype=<incomplete type>, typeInfo=..., classInfo=0x7ffff7cb9860 <WebCore::JSRTCSessionDescriptionPrototype::s_info>, indexingType=0 '\000', inlineCapacity=0) at /home/nick/projects/webkit-nix/src/nix/Source/JavaScriptCore/runtime/StructureInlines.h:39
#5 0x00007ffff37fc5d0 in WebCore::JSRTCSessionD
@nickdiego
nickdiego / webaudio-warnings-webkit-efl
Created November 12, 2013 14:23
webkit efl release build gstreamer 1.0.8 ubuntu 13.04
HTML5 local storage is enabled for this view.
0:00:00.026368872 5868 0x1ef6ca0 WARN typefind gsttypefindelement.c:772:gst_type_find_get_extension:<typefind> failed to query peer uri
0:00:01.109740843 5868 0x7fe55405ea30 WARN audioresample gstaudioresample.c:1433:plugin_init: Orc disabled, can't benchmark int vs. float resampler
0:00:01.109767087 5868 0x7fe55405ea30 WARN GST_PERFORMANCE gstaudioresample.c:1436:plugin_init: orc disabled, no benchmarking done
0:00:05.168712146 5868 0x7fe5480030f0 WARN bin gstbin.c:2490:gst_bin_do_latency_func:<play> failed to query latency
0:00:12.906384786 5868 0x1e8fd90 WARN webkitwebaudiosrc /home/nick/projects/webkit-nix/src/nix/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:392:webKitWebAudioSrcLoop:<webkitwebaudiosrc0> error: Internal WebAudioSrc error
0:00:12.906419659 5868 0x1e8fd90 WARN webkitwebaudiosrc /home/nick/projects/webkit-nix/src/nix/Source/WebCore/p
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**