kripken/emscripten — Issue #196: SDL_InitSubSystem does not appear to work
Author: mikeconley
Created: 2012-01-30 14:17:56+00:00
State: open

Steps to reproduce:

1) Open tests/hello_world_sdl.cpp
2) After line 8 (SDL_Init(SDL_INIT_VIDEO)), insert the following line:

SDL_InitSubSystem(SDL_INIT_AUDIO);

3) Compile, and then load into Firefox

Actual results:

The coloured cube does not appear. Instead, the Error Console displays:

Error: _SDL_InitSubSystem is not a function
Source File: file:///media/Projects/emscripten/sdl_initsubsystem_bug.html
Line: 655

Expected results:

SDL_InitSubSystem should be defined properly in the generated Javascript.

SDL_InitSubSystem reference: http://sdl.beuc.net/sdl.wiki/SDL-1.3/SDL_InitSubSystem