Commit Graph

61 Commits

Author SHA1 Message Date
Hajime Hoshi
2840bafd0a audio: Move drivers to internal/driver 2016-04-09 00:54:18 +09:00
Hajime Hoshi
ff8f15a212 audio: Refactoring 2016-04-05 02:56:25 +09:00
Hajime Hoshi
7bdda4e9ca audio: Refactoring: Remove context.sampleRate 2016-04-05 02:40:14 +09:00
Hajime Hoshi
805e6b7b36 audio: Use Read-write lock 2016-04-05 02:24:54 +09:00
Hajime Hoshi
79985535c3 audio: Refactoring: mixingStream has the global lock 2016-04-05 02:17:39 +09:00
Hajime Hoshi
da6ffdf2b9 audio: Refactoring: context doesn't have to have a reference to stream 2016-04-05 00:40:31 +09:00
Hajime Hoshi
f222885d97 audio: Context.Update now returns error (#197) 2016-04-05 00:09:00 +09:00
Hajime Hoshi
b6a02ddc94 audio: Refactoring: Unify loop 2016-04-04 23:42:44 +09:00
Hajime Hoshi
26bc94ca4a audio: Reduce panic 2016-04-04 02:16:26 +09:00
Hajime Hoshi
1ec786f83a audio: audio.NewContext now returns error 2016-04-03 02:59:44 +09:00
Hajime Hoshi
e631714a43 audio: SetVolume now rejects NaN 2016-04-03 02:46:18 +09:00
Hajime Hoshi
54f0e30fe6 audio: Remove returning value from startPlaying 2016-04-03 02:43:39 +09:00
Hajime Hoshi
d2ccbdbe23 audio: Add Player.Close (#194) 2016-03-29 00:06:37 +09:00
Hajime Hoshi
0662e1a1de audio: Add Volume/SetVolume 2016-03-28 11:06:17 +09:00
Hajime Hoshi
4a4621a126 examples/audio: Implement seeking 2016-03-20 01:40:10 +09:00
Hajime Hoshi
eb0d650612 tmp 2016-03-18 02:42:47 +09:00
Hajime Hoshi
6c78837d06 test: Split util_test into readfile_test and readfile_js_test 2016-03-17 00:11:40 +09:00
Hajime Hoshi
c100ff7989 audio: Refactoring 2016-03-16 03:02:54 +09:00
Hajime Hoshi
3bf9334a80 audio: Bug fix: a buffer size passed to OpenAL must be a multiple of 4 (#187) 2016-03-16 02:58:33 +09:00
Hajime Hoshi
b1f856a0e0 Add FPS const 2016-03-13 04:57:31 +09:00
Hajime Hoshi
305016f636 audio: Reduce magic numbers 2016-03-13 03:59:57 +09:00
Hajime Hoshi
bc49108c40 audio: Move VorbisStream to a new package 2016-03-13 03:00:05 +09:00
Hajime Hoshi
71312ba26f audio: Add AudioContext.Update (#177) 2016-03-12 23:40:11 +09:00
Hajime Hoshi
bcd7bfc74e audio: Bug fix: mixedPlayersStream.Read must return 0 when nothing plays (#180) 2016-03-11 04:21:27 +09:00
Hajime Hoshi
66052b5b5d audio: an inner player should be in the context 2016-03-08 02:30:38 +09:00
Hajime Hoshi
d632a2d7a4 audio: Refactoring 2016-03-06 22:03:11 +09:00
Hajime Hoshi
5ba5a1fb90 audio: Add player methods 2016-03-06 18:55:20 +09:00
Hajime Hoshi
38e36dedc1 audio: Remove padding 0 values 2016-03-06 18:25:58 +09:00
Hajime Hoshi
8631fbc027 audio: mixedPlayingStream returns empty 0s again 2016-03-05 22:58:54 +09:00
Hajime Hoshi
6d85d82c85 audio: mixedPlayerStream.Read now may return 0 byte result 2016-03-05 20:09:29 +09:00
Hajime Hoshi
fb5a366b97 audio: Refactoring 2016-03-05 18:31:30 +09:00
Hajime Hoshi
76386213bd audio: Refactoring 2016-03-05 01:52:28 +09:00
Hajime Hoshi
136c09cd33 audio: Rename Stop -> Pause 2016-03-05 01:01:57 +09:00
Hajime Hoshi
05f52b5e57 audio: Filter overflow values 2016-03-03 12:22:10 +09:00
Hajime Hoshi
3859bc7421 audio: Mixing by Go 2016-03-03 11:57:25 +09:00
Hajime Hoshi
58c5e5e655 audio: Add Context 2016-03-03 00:48:59 +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