Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Michael J. Bishop ed0c109645 Added support for loading .ogg audio files using a combination of
`SDL_RWFromConstMem()` + `Mix_LoadMUS/WAV_RW()`.

`SDL_RWFromConstMem()` now returns an opaque reference that corresponds
to a Javascript-side object which retains the information passed in.
The same for `SDL_RWFromFile()` but it saves different information.

When `Mix_LoadMUS/WAV_RW()` is called, it now expects a reference to
one of those Javascript-side objects and from it, either uses a
pre-loaded Audio, or reads bytes from the file-system to make one,
or uses the bytes originally passed into `SDL_RWFromConstMem()` to
create one.

Note that with this change you can now simply embed sound files in your
app, you do not need to preload them.
2013-07-15 18:49:34 -04:00
Alon Zakai 1cb12b85df fix test_sdl_audio 2013-05-21 18:03:11 -07:00
Michael J. Bishop a7d7dad8ba Added some SDL_Mixer calls:
- `Mix_Playing`
- `Mix_Pause`
- `Mix_Pause`
- `Mix_Resume`
2013-02-22 10:47:23 -05:00
Alon Zakai 3651e7c0c0 support for SDL channels and channelFinished 2012-05-04 17:33:51 -07:00
Alon Zakai 3b6853f50b close browser test windows in almost all tests, making the browser tests much more automatic 2012-04-11 11:47:42 -07:00
Alon Zakai f88f3af217 do not use blob constructor if not present, and closure workaround 2012-03-27 15:39:35 -07:00
Alon Zakai 7450114c4d support wav and mp3 audio suffixes too 2012-03-27 13:24:49 -07:00
Alon Zakai e39cb11407 add audio test file 2012-03-27 12:14:09 -07:00