Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:13:23+00:00 2026-06-15T06:13:23+00:00

The Problem I’m working on a web application where users can sequence audio samples

  • 0

The Problem

I’m working on a web application where users can sequence audio samples and optionally apply effects to the musical patterns they create using the Web Audio API. The patterns are stored as JSON data, and I’d like to do some analysis of the rendered audio of each pattern server-side. This leaves me with two options, as far as I can see:

  1. Run my own rendering code server-side, trying to make it as faithful as possible to the in-browser rendering. Maybe I could even pull out the Web Audio code from the Chromium project and modify that, but this seems like potentially a lot of work.

  2. Do the rendering client-side, hopefully faster-than-realtime, and then send the rendered audio to the server. This is ideal (and DRY), because there’s only one engine being used for pattern rendering.

The Possible Solution

This question lead me to this code sample in the Chromium repository, which seems to indicate that offline processing is a possibility. The trick seems to be constructing a webkitAudioContext with some arguments (usually, a zero-argument constructor is used). The following are my guesses at what the parameters mean:

new webkitAudioContext(2,          // channels
                       10 * 44100, // length in samples
                       44100);     // sample rate

I adapted the sample slightly, and tested it in Chrome 23.0.1271.91 on Windows, Mac, and Linux. Here’s the live example, and the results (open up the Dev Tools Javascript Console to see what’s happening):

  • Mac – It Works!!
  • Windows – FAIL – SYNTAX_ERR: DOM Exception 12
  • Linux – FAIL – SYNTAX_ERR: DOM Exception 12

The webkitAudioContext constructor I described above causes the exception on Windows and Linux.

My Question

Offline rendering would be perfect for what I’m trying to do, but I can’t find documentation anywhere, and support is less-than-ideal. Does anyone have more information about this? Should I be expecting support for this in Windows and/or Linux soon, or should I be expecting support to disappear soon on Mac?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:13:25+00:00Added an answer on June 15, 2026 at 6:13 am

    I did some research on this a few months back, and there is a startRendering function on the audioContext, but I was told by Google people that the implementation was, at that time, due to change. I don’t think this has happened yet, and it’s still not a part of the official documentation, so I’d be careful building an app that depends on it.

    The current implementation doesn’t render any faster than realtime either (maybe slightly in very light applications), and sometimes even slower than realtime.

    Your best bet is hitting the trenches and implement Web Audio server-side if you need non-realtime rendering. If you could live with realtime rendering there’s a project at https://github.com/mattdiamond/Recorderjs which might be of interest.

    Please note that I’m not a googler myself, and what I was told was not a promise in any way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem: I've written State Machine for my android application. It is separate class, extension
Problem is like this: I have two winapi application's. There is only one way
Problem background: I have a Qt/QML Symbian application targeting Qt 4.7.4, that requires a
Problem: I can set the exposureMode property of AVCaptureDevice, but it does not stay
Problem: I'm working on a website where there is a dial that displays a
Problem statement: I want to upload a large binary (such as an audio clip)
Problem is I can see already the value of my json through firebug but
Problem Description I am writing Android application and I need to add to my
Problem: Report Templates are created by Admin Users who only decide what data to
Problem: Been struggling to get my code to load external shaders and it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.