Commit Graph

502 Commits

Author SHA1 Message Date
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
4d3ad434b3 audio/wav, audio/vorbis: Add comments about errors (#331) 2017-04-18 01:25:23 +09:00
Hajime Hoshi
1497d52928 audio: Add comments about errors (#331) 2017-04-18 00:59:10 +09:00
Hajime Hoshi
7e4e762d96 audio: Reuse jmethodID objects 2017-04-08 01:41:07 +09:00
Hajime Hoshi
b5a422700a audio: Reuse jclass objects 2017-04-08 01:35:48 +09:00
Hajime Hoshi
a6c5b98f0f audio: Release AudioTrack class (#336) 2017-04-07 11:36:24 +09:00
Hajime Hoshi
713a537637 audio: Delete local refs explicitly in JNI (#336) 2017-04-06 02:12:20 +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
5da58fc949 audio: Fix comment 2017-02-18 15:48:31 +09:00
Hajime Hoshi
8bfcea8f42 audio: Fix compile error on macOS (#324) 2017-02-18 15:42:35 +09:00
Hajime Hoshi
bd1a486b3a Bug fix: gopherjs build failed on Windows 2017-02-09 02:37:40 +09:00
Hajime Hoshi
0ef1e61d55 mobile: Fix iOS tag usages (#310) 2017-01-26 01:32:33 +09:00
Hajime Hoshi
8c2064c8b7 audio: Apply delaying when initializing 2017-01-22 19:43:03 +09:00
Hajime Hoshi
7201015d02 audio: Bug fix: Noise on Safari because of performance issue (#307) 2017-01-22 19:19:24 +09:00
Hajime Hoshi
6ee4b46dbe audio: Improve delay on browsers (#299) 2017-01-17 01:14:09 +09:00
Hajime Hoshi
6437bb28da audio/wav: Bug fix: header size was wrong 2017-01-16 23:36:09 +09:00
Hajime Hoshi
abd0958566 audio: Better conversion from 8bit to 16bit 2017-01-16 23:08:01 +09:00
Hajime Hoshi
f9ab7d9043 audio: Use consts 2017-01-16 22:48:44 +09:00
Hajime Hoshi
244d8204c5 audio/wav: Bug fix: seek correctly when using io.SeekEnd 2017-01-16 22:29:20 +09:00
Hajime Hoshi
2439d407df audio: Bug fix: Adjust data size after resampling 2017-01-16 11:25:46 +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
ed8d87dd87 audio: Convert 8bit monoral to 16bit stereo (#282) 2017-01-16 00:03:18 +09:00
Hajime Hoshi
5bdcd8825c Rename audio/internal/resampling -> audio/internal/convert 2017-01-15 22:37:59 +09:00
Hajime Hoshi
adde2f459e audio/wav: Bug fix: fmt header can be more than 16 bytes 2017-01-15 22:02:59 +09:00
Hajime Hoshi
14165cc67e audio: Fix comment 2017-01-15 18:02:21 +09:00
Hajime Hoshi
71cecea9c9 audio: Auto resampling (#301) 2017-01-15 17:49:57 +09:00
Hajime Hoshi
ee3da352db audio: Bug fix: Fix Seek: wav file can have a tail 2017-01-15 01:30:28 +09:00
Hajime Hoshi
f78f4002fa audio: Bug fix: wav.Decoder.Seek's returning value was wrong 2017-01-15 01:16:36 +09:00
Hajime Hoshi
9620c4efb2 audio: Add InfiniteLoop (#291) 2017-01-14 21:00:20 +09:00
Hajime Hoshi
d80b213184 audio: Bug fix: Touch is required by Chrome 55+ on Android 2016-12-17 00:14:33 +09:00
Hajime Hoshi
924c55ff5c audio/vorbis: Remove comment 2016-12-12 20:06:54 +09:00
Hajime Hoshi
6d895a2001 audio/vorbis: Remove decode.go 2016-12-12 19:52:52 +09:00
Hajime Hoshi
52f57c4a6a audio/vorbis: Adjust Gosched timing (#297) 2016-12-08 10:56:36 +09:00
Hajime Hoshi
8ed07e0822 audio/vorbis: Avoid appending buffer 2016-12-08 02:14:39 +09:00
Hajime Hoshi
51da710860 audio/vorbis: Read some data before actual using (#297) 2016-11-30 12:00:53 +09:00
Hajime Hoshi
741ce9c7b8 audio: Bug fix: Handle touch event for iOS (#296) 2016-11-30 03:25:24 +09:00
Hajime Hoshi
604827ed3a audio/vorbis: Change the capacity of buffer 2016-11-29 12:12:48 +09:00
Hajime Hoshi
7b4af1b12d doc: Ogg/Vorbis is now available on Safari (#294) 2016-11-29 03:42:16 +09:00
Hajime Hoshi
83f19591ca audio/vorbis: Add decoded.readUntil 2016-11-29 03:37:43 +09:00
Hajime Hoshi
5789ad6920 audio/vorbis: Add comment 2016-11-29 03:36:42 +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
b454ff6547 audio/vorbis: Use oggvorbis for browsers 2016-11-29 01:02:00 +09:00
Hajime Hoshi
b0231c040e audio/vorbis: Adopt pure-Go decoder again (#294) 2016-11-28 11:34:44 +09:00
Hajime Hoshi
b6a8b5f5c9 audio/vorbis: Bug fix: Noise on browsers 2016-11-27 20:26:13 +09:00
Hajime Hoshi
38f0ec40b4 audio/vorbis: Use consts 2016-11-27 01:06:18 +09:00
Hajime Hoshi
8eba9cfc7f doc: Update docs for Safari (#293) 2016-11-27 00:11:23 +09:00
Hajime Hoshi
d16b5d328a Revert "audio/vorbis: Adopt pure-Go decoder (#294)"
This reverts commit 86276d7808.
2016-11-26 05:43:42 +09:00
Hajime Hoshi
86276d7808 audio/vorbis: Adopt pure-Go decoder (#294) 2016-11-26 04:31:56 +09:00
Hajime Hoshi
cf6d843572 vorbis: Return error when decoding fails 2016-11-26 02:06:15 +09:00
Hajime Hoshi
443c58104b audio: Remove logger on Android 2016-11-16 10:25:04 +09:00
Hajime Hoshi
61676616a7 audio: At most one audio context can exist (#271) 2016-10-02 22:18:44 +09:00
Hajime Hoshi
2eac8dca8c audio/wav: Bug fix: return an error when offset is before the start of the data 2016-09-27 02:13:56 +09:00
Hajime Hoshi
a14b4c8046 audio: Revert "audio/vorbis: Use pure Go decoder (#247)": fixing a bug of noisy sound 2016-09-27 01:01:04 +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
1f8cd41326 windows: Add comments 2016-09-11 22:34:39 +09:00
Hajime Hoshi
acb66fffe8 audio: Use timshannon's OpenAL lib 2016-09-10 15:11:11 +09:00
Hajime Hoshi
dd9918d64e Add comments 2016-08-02 01:47:25 +09:00
Hajime Hoshi
77a1117165 audio/vorbis: Use pure Go decoder (#247) 2016-07-22 01:40:08 +09:00
Hajime Hoshi
0c78f2ac48 audio/vorbis: Implement a part in Go to encourage context switch (#247) 2016-07-21 03:08:29 +09:00
Hajime Hoshi
9de581f832 audio: Check returning values of write (android) 2016-07-01 22:05:11 +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
0b8fe25350 opengl: Implement GlslHighpSupported for iOS 2016-06-17 04:13:46 +09:00
Hajime Hoshi
dfe4db67be Fix for iOS 2016-06-17 02:08:25 +09:00
Hajime Hoshi
a95edaceba audio: Remove unneeded padding 2016-05-31 22:32:10 +09:00
Hajime Hoshi
3ce8122557 audio: Replace APIs with low level APIs 2016-05-31 22:29:25 +09:00
Hajime Hoshi
84bf1ddf5c audio: Bug fix: Avoid blocking when sending buffer 2016-05-31 10:17:22 +09:00
Hajime Hoshi
ebac6cbb81 audio: Refactoring for mobiles (reduce calls) 2016-05-29 18:34:52 +09:00
Hajime Hoshi
a329f7939d audio: Remove confusing comments 2016-05-29 13:19:17 +09:00
Hajime Hoshi
2dd1e9c567 audio: Remove unneeded args 2016-05-28 19:01:26 +09:00
Hajime Hoshi
6a74ea5b30 Introduce internal/jni 2016-05-28 19:01:26 +09:00
Hajime Hoshi
4254e7b70e audio: Add comment to explain why we don't free memory 2016-05-27 19:43:03 +09:00
Hajime Hoshi
4c2bbd47a1 audio: Fix a comment 2016-05-26 23:33:12 +09:00
Hajime Hoshi
ca2f85f3d1 audio: Refactoring: Add loop 2016-05-26 03:15:51 +09:00
Hajime Hoshi
d6dee0815e audio: Bug fix: Avoid deadlock 2016-05-26 03:13:56 +09:00
Hajime Hoshi
644dfcd0fd audio: Create an independent goroutine for enqueuing 2016-05-26 02:50:54 +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
b65aeb7ac3 audio/internal/driver: Add driver_android.go (WIP) 2016-05-25 03:40:04 +09:00
Hajime Hoshi
64afa87def audio: Add driver_mobile.go 2016-05-24 01:24:40 +09:00
Hajime Hoshi
02bf986049 vorbis: Fix misspelling 2016-05-14 03:43:50 +09:00
Hajime Hoshi
1fa89776fc vorbis: Modify function name styles to make golint happy 2016-05-14 03:41:48 +09:00
Hajime Hoshi
88fc32c070 Pointer arithmetic with a variable index should be in C 2016-05-14 02:53:14 +09:00
Hans Rødtang
b3d43c185b Fixed shifting on byte instead of int64 (#214)
Thanks a lot!
2016-05-13 16:19:02 +09:00
Hajime Hoshi
f7211f3391 audio: Refactoring: No need to hold a buffer source 2016-04-23 02:33:13 +09:00
Hajime Hoshi
a14aa6779e audio: Try supporting Safari (WIP) 2016-04-21 23:57:15 +09:00
Hajime Hoshi
9a7e5683a1 audio: Remove redundant code in JS 2016-04-21 02:54:18 +09:00
Hajime Hoshi
5d5f27bcbf audio: Bug fix: Reduce noise by using long buffers (#205) 2016-04-21 02:48:43 +09:00
Hajime Hoshi
9a18ffe563 audio: Change NewPlayer to be an independent function 2016-04-19 23:43:54 +09:00
Hajime Hoshi
52fe168111 audio/wav: Fix wrong comments (#208) 2016-04-19 23:19:31 +09:00
Hajime Hoshi
895c559b8e audio/vorbis: Bug fix: compible error in JS 2016-04-19 02:43:06 +09:00
Hajime Hoshi
5ae624b891 audio: Add comments (#199) 2016-04-19 02:00:16 +09:00
Hajime Hoshi
b0178e8425 audio: Move exp/audio -> audio (#206) 2016-04-19 01:26:37 +09:00