Hajime Hoshi
|
b7d559fdf3
|
clock: Refactoring: Move frames calculation to clock
|
2017-08-06 00:18:38 +09:00 |
|
Hajime Hoshi
|
a92f77c207
|
clock: Rename function names; loop: Rename variables
|
2017-08-05 22:25:21 +09:00 |
|
Hajime Hoshi
|
94843fbe73
|
loop: Move clock.FPS to loop.FPS to reduce dependencies
|
2017-08-05 22:08:58 +09:00 |
|
Hajime Hoshi
|
b15ad9c1d0
|
audio: Refactoring
|
2017-07-15 16:31:08 +09:00 |
|
Hajime Hoshi
|
5fd8fe839b
|
audio: Simplify player's Read/Seek
|
2017-07-15 03:15:54 +09:00 |
|
Hajime Hoshi
|
59110ba5ec
|
clock: Refactoring: Use clock.FPS everywhere
|
2017-07-14 03:19:50 +09:00 |
|
Hajime Hoshi
|
8dda875c30
|
doc: Explaing about audio syncing
|
2017-07-14 02:26:41 +09:00 |
|
Hajime Hoshi
|
7f320f9518
|
audio: Fix doc
|
2017-07-14 01:45:36 +09:00 |
|
Hajime Hoshi
|
3d8fc790b6
|
loop: Remove dependency on audio
|
2017-07-14 01:42:58 +09:00 |
|
Hajime Hoshi
|
5d1d0844e1
|
Add internal/clock
|
2017-07-14 00:34:05 +09:00 |
|
Hajime Hoshi
|
c3202b8e58
|
audio: Adjust the buffer size
|
2017-07-13 23:48:03 +09:00 |
|
Hajime Hoshi
|
3454b32cb6
|
audio: Bug fix: oto.Player must not be called on init
|
2017-07-13 01:34:02 +09:00 |
|
Hajime Hoshi
|
80b10b2d49
|
audio: Use variables instead of channels to avoid GopherJS bugs
|
2017-07-13 01:34:02 +09:00 |
|
Hajime Hoshi
|
fdaf03b209
|
audio: Make the game loop depend on the audio clock
|
2017-07-13 01:33:59 +09:00 |
|
Hajime Hoshi
|
079395dd6f
|
audio: Better variable name
|
2017-07-09 05:14:13 +09:00 |
|
Hajime Hoshi
|
2552f1625d
|
audio: Discard audio data when queue seems full
|
2017-07-09 05:06:34 +09:00 |
|
Hajime Hoshi
|
5cf7b2491a
|
audio: Bug fix: noise on audio
|
2017-07-09 04:09:21 +09:00 |
|
Hajime Hoshi
|
d0778b5253
|
audio: Avoid using time.After on browsers for performance
|
2017-07-02 17:27:07 +09:00 |
|
Hajime Hoshi
|
45ca2a1f79
|
audio: Bug fix: possible overflow and closing nil channel
|
2017-07-02 16:28:02 +09:00 |
|
Hajime Hoshi
|
1fe2d90d8a
|
audio: Bug fix: Write can block and needs to be called asynchronously (#373)
|
2017-06-29 03:36:19 +09:00 |
|
Hajime Hoshi
|
1f28c687cf
|
audio: Bug fix: Seeking might block forever when another seeking is not done yet
|
2017-06-24 23:33:19 +09:00 |
|
Hajime Hoshi
|
d8f425962c
|
audio: Bug fix: players' buffer can be empty when seeking before proceeding (#366)
|
2017-06-11 19:13:45 +09:00 |
|
Hajime Hoshi
|
1da2e35b7a
|
android: Adjust the buffer size to reduce noise on Android
|
2017-06-04 22:42:12 +09:00 |
|
Hajime Hoshi
|
3b9e6c2708
|
audio: Use the new oto API
|
2017-06-04 21:09:42 +09:00 |
|
Hajime Hoshi
|
8957b1b857
|
audio: Non-blocking reading buffers
|
2017-06-04 16:46:02 +09:00 |
|
Hajime Hoshi
|
10bd1c1786
|
audio: byte -> uint8
|
2017-06-04 16:05:22 +09:00 |
|
Hajime Hoshi
|
17d6ea16de
|
audio: More narrow critical section
|
2017-06-04 04:37:59 +09:00 |
|
Hajime Hoshi
|
7ad82dab44
|
audio: Bug fix: consider seeking streams when reading multiple sources
|
2017-06-04 04:05:30 +09:00 |
|
Hajime Hoshi
|
cf452bb709
|
audio: Bug fix: nosync might cause unexpected panics because of runtime.Gosched
|
2017-06-04 03:42:26 +09:00 |
|
Hajime Hoshi
|
873b3905df
|
audio: Split locks
|
2017-06-04 03:14:48 +09:00 |
|
Hajime Hoshi
|
e7478b794a
|
audio: Change the spec: Now audio.Player's functions are always concurrent safe
|
2017-06-04 02:52:11 +09:00 |
|
Hajime Hoshi
|
f53a55b63a
|
audio: Bug fix: some fields need to be protected by mutex
|
2017-06-04 02:45:38 +09:00 |
|
Hajime Hoshi
|
579491afbd
|
audio: Clarify concurrent safety
|
2017-06-04 01:03:01 +09:00 |
|
Hajime Hoshi
|
98c48463d2
|
audio: NewPlayerFromBytes now never returns errors
|
2017-06-03 01:12:58 +09:00 |
|
Hajime Hoshi
|
1b72263ce1
|
sync: Add sync package
|
2017-05-27 02:37:01 +09:00 |
|
Hajime Hoshi
|
64862929a9
|
audio: Fix usage of 'oto'
|
2017-05-05 15:13:46 +09:00 |
|
Hajime Hoshi
|
766072cdbb
|
audio: Make 'oto' package and use that (#351)
|
2017-05-04 21:09:02 +09:00 |
|
Hajime Hoshi
|
858824821f
|
doc: Remove 'concurrent-safe' comments from most of non-global functions
|
2017-04-18 01:33:03 +09:00 |
|
Hajime Hoshi
|
1497d52928
|
audio: Add comments about errors (#331)
|
2017-04-18 00:59:10 +09:00 |
|
Hajime Hoshi
|
b0454b874e
|
Fix frame counters to int64 (#337)
|
2017-04-06 00:45:28 +09:00 |
|
Hajime Hoshi
|
ebedb24e43
|
audio: Update doc for errors (#331)
|
2017-04-05 01:12:02 +09:00 |
|
Hajime Hoshi
|
892d5d07d0
|
audio: Remove TODO
|
2017-03-27 22:48:57 +09:00 |
|
Hajime Hoshi
|
bb435b7296
|
audio: Remove NopCloser and Add BytesReadSeekCloser
|
2017-01-16 02:36:18 +09:00 |
|
Hajime Hoshi
|
8b4389856d
|
audio: Add NopCloser
|
2017-01-16 02:21:21 +09:00 |
|
Hajime Hoshi
|
14165cc67e
|
audio: Fix comment
|
2017-01-15 18:02:21 +09:00 |
|
Hajime Hoshi
|
bf4e453cdb
|
audio: Ignore seeking players
|
2016-11-29 03:36:16 +09:00 |
|
Hajime Hoshi
|
38af8ce615
|
audio: Remove unneeded locks
|
2016-11-29 03:01:52 +09:00 |
|
Hajime Hoshi
|
61676616a7
|
audio: At most one audio context can exist (#271)
|
2016-10-02 22:18:44 +09:00 |
|
Hajime Hoshi
|
c634c588e5
|
audio: Bug fix: there could be chunks after 'data' chunk
|
2016-09-27 00:37:40 +09:00 |
|
Hajime Hoshi
|
d162843fbb
|
audio: Add comment
|
2016-09-26 23:08:34 +09:00 |
|
Hajime Hoshi
|
d6c1bb2ae8
|
audio: Fix a comment
|
2016-06-28 02:50:13 +09:00 |
|
Hajime Hoshi
|
5551a70776
|
audio: Fix a comment of (*Player).Close
|
2016-06-27 13:53:29 +09:00 |
|
Hajime Hoshi
|
b02d89cdc3
|
audio: Add NewPlayerFromBytes (#231)
|
2016-06-27 02:23:08 +09:00 |
|
Hajime Hoshi
|
a2402c32c0
|
audio: Check the stream can be used or not
|
2016-06-27 02:02:01 +09:00 |
|
Hajime Hoshi
|
4c2bbd47a1
|
audio: Fix a comment
|
2016-05-26 23:33:12 +09:00 |
|
Hajime Hoshi
|
12d62621e9
|
audio: Bug fix: Play sound correctly on Android
|
2016-05-26 01:46:26 +09:00 |
|
Hajime Hoshi
|
0ee6b4405c
|
audio: Bug fix: Lazy initialization of audio context
|
2016-05-25 03:47:59 +09:00 |
|
Hajime Hoshi
|
9a18ffe563
|
audio: Change NewPlayer to be an independent function
|
2016-04-19 23:43:54 +09:00 |
|
Hajime Hoshi
|
b0178e8425
|
audio: Move exp/audio -> audio (#206)
|
2016-04-19 01:26:37 +09:00 |
|