Commit Graph

205 Commits

Author SHA1 Message Date
Hajime Hoshi
797bd04b1f audio: Bug fix: newPlayer should return error in JS 2016-02-13 21:39:45 +09:00
Hajime Hoshi
72e0080f65 audio: Refactoring: Remove alSourceCache and add playerCache instead 2016-02-13 21:21:42 +09:00
Hajime Hoshi
16412aab30 audio: Bug fix: Reuse buffers properly 2016-02-13 20:43:27 +09:00
Hajime Hoshi
0f81a421b8 audio: Bug fix: sources were not reused properly 2016-02-13 06:44:49 +09:00
Hajime Hoshi
3638ac6ad8 audio: Bug fix: total num of buffers should be 8 for each source 2016-02-13 00:45:48 +09:00
Hajime Hoshi
49751eb954 audio: Bug fix: unqueue remaining buffers properly 2016-02-12 23:49:30 +09:00
Hajime Hoshi
68b84a90b6 audio: Bug fix: alGenBuffer accepts only positive number 2016-02-12 21:43:00 +09:00
Hajime Hoshi
b2724e8694 audio: Reuse al.Source objects (crash still happens on piano) 2016-02-12 21:39:48 +09:00
Hajime Hoshi
f0d7a811e1 audio: Enable to play inifinite stream 2016-02-12 16:35:09 +09:00
Hajime Hoshi
6d3598c057 audio: Add Close method 2016-02-11 19:55:59 +09:00
Hajime Hoshi
1fec0d8203 audio: Refactoring 2016-02-11 18:43:11 +09:00
Hajime Hoshi
1e4f486174 audio: Move files from internal/audio to exp/audio 2016-02-11 17:22:02 +09:00
Hajime Hoshi
8e43d1047b audio: Use io.ReadSeeker instead of ReadSeekCloser 2016-02-11 17:07:28 +09:00
Hajime Hoshi
10650d1c6e audio: Introduce audio.Player 2016-02-11 02:18:39 +09:00
Hajime Hoshi
d52118639d audio: Use IO as source 2016-02-11 02:09:06 +09:00
Hajime Hoshi
c6a431c9ab audio: add sampleRate arg to Queue: implementation turned to be simplified 2016-02-10 02:40:07 +09:00
Hajime Hoshi
2ba25b1a14 auido: Remove some APIs 2016-02-09 23:04:00 +09:00
Hajime Hoshi
70fe6d8169 audio: Remove channel argument from audio.Queue 2016-02-09 22:55:18 +09:00
Hajime Hoshi
ddd6e2b732 audio: Fix comment 2016-02-08 00:51:25 +09:00
Hajime Hoshi
60c4990555 audio: Change audio.SampleRate to be a const 2016-02-08 00:48:43 +09:00
Hajime Hoshi
b63911e6f7 audio: Remove audio.Play 2016-02-08 00:45:02 +09:00
Hajime Hoshi
a83286accb audio: Move files from exp/audio/inner to internal/audio 2016-02-07 16:03:41 +09:00
Hajime Hoshi
1e738f6a10 image: Remove image.DrawLines (#142) 2016-02-06 17:52:05 +09:00
Josh Deprez
27dc487d18 openal.GetError no longer exists, use Err instead. 2016-01-05 08:08:21 +11:00
Hajime Hoshi
633ee4096e #132 Temporal hack to run with Go1.5 2015-07-22 23:28:15 +09:00
Hajime Hoshi
349eb95bba audio: Disable audio on Windows temporarily 2015-06-20 23:39:56 +09:00
Hajime Hoshi
cba1066b0f audio: Fix buffer size calculation 2015-06-14 03:50:29 +09:00
Hajime Hoshi
00f582d435 audio: Fix internal APIs (raw PCM data) 2015-06-14 03:21:05 +09:00
Hajime Hoshi
de59c93219 audio: Change API to accept raw PCM data 2015-06-08 00:05:18 +09:00
Hajime Hoshi
23cef1b715 #128 Bug fix: Delay when playing audio 2015-06-07 23:24:15 +09:00
Hajime Hoshi
47f31f75a0 Change sleeping time 2015-06-07 22:01:14 +09:00
Hajime Hoshi
115c97f296 #126: Fix the bug crashing on Safari 2015-06-04 01:25:04 +09:00
Hajime Hoshi
bca600a093 Update for the latest GopherJS (use *js.Object instead of js.Object) 2015-03-01 01:26:16 +09:00
Hajime Hoshi
9ec7b13f27 example/piano: Speed up 2015-02-16 10:48:57 +09:00
Hajime Hoshi
eed7f50662 audio: Bug fix: pass tests 2015-02-16 02:23:04 +09:00
Hajime Hoshi
15739415c7 audio: Bug fix: Callback (audioprocess) can't treat goroutines (#119) 2015-02-16 02:05:19 +09:00
Hajime Hoshi
d5a2bdd7ac audio: Refactoring again (OpenAL's buffer requires fixed-size data) 2015-02-14 20:11:40 +09:00
Hajime Hoshi
e13e153cb4 audio: Bug fix: runtime error on OpenAL 2015-02-14 20:01:35 +09:00
Hajime Hoshi
dc54867401 audio: Refactoring 2015-02-14 19:55:43 +09:00
Hajime Hoshi
beecf31937 Resolve some TODOs 2015-02-10 10:44:58 +09:00
Hajime Hoshi
cd4188b0a3 Add SetScreenScale (#115) 2015-02-10 00:10:50 +09:00
Hajime Hoshi
fdedee9aab Bug fix: Add gopherjs:blocking for the latest GopherJS 2015-02-09 11:16:23 +09:00
Hajime Hoshi
d321dfe7fd Remove audio/internal.Start() 2015-01-27 23:00:41 +09:00
Hajime Hoshi
ea78b31414 Move internal/audio -> exp/audio/internal 2015-01-27 22:55:45 +09:00
Hajime Hoshi
e1336c2eba audio: Change API: accept []int16 instead of []float32 2015-01-25 19:17:53 +09:00
Hajime Hoshi
2d5ac9e987 audio: Add comments, add IsPlaying 2015-01-24 21:46:35 +09:00
Hajime Hoshi
2c7430171d audio: Add comments 2015-01-24 15:48:48 +09:00
Hajime Hoshi
edda664ca8 audio: Refactoring 2015-01-24 14:53:42 +09:00
Hajime Hoshi
28983e4e24 Add exp/doc.go 2015-01-24 14:53:37 +09:00
Hajime Hoshi
d020824b3a audio: Move to exa/audio 2015-01-23 23:04:56 +09:00
Hajime Hoshi
d2d32d3956 example/blocks: Use gamepad 2015-01-20 10:36:21 +09:00
Hajime Hoshi
a3adf50850 Remove gamepad.go commited wrongly 2015-01-19 22:18:41 +09:00
Hajime Hoshi
efcd44e2a1 exp/shape: Bug fix: Sin(2π) is inaccurate; Use Sin(0) instead (#98) 2015-01-19 22:16:54 +09:00
Hajime Hoshi
d12477fb2a example/shape: Bug fix: The positions must be rounded (#97) 2015-01-19 10:15:46 +09:00
Hajime Hoshi
db22bf6242 Add exp/shape package 2015-01-18 01:26:57 +09:00