Commit Graph

95 Commits

Author SHA1 Message Date
Hajime Hoshi
92bc5c1908 audio: Add (*Context).NewPlayer and (*Context).NewPlayerFromBytes
Closes #1708
2021-07-22 16:41:04 +09:00
Hajime Hoshi
1dc8002689 examples: Reduce global variables
Closes #1669
2021-07-22 01:38:55 +09:00
Hajime Hoshi
5c4885c988 inpututil: Add AppendJustConnectedTouchIDs
Closes #1705
2021-07-10 23:30:04 +09:00
Hajime Hoshi
a615be69c7 examples: Add //go:build 2021-06-24 21:49:37 +09:00
Hajime Hoshi
e1d0b902e1 examples/audio: Add buttons 2021-05-04 02:02:17 +09:00
Hajime Hoshi
311d53ce2e examples/audio: Enable to touch 2021-02-21 19:20:24 +09:00
Hajime Hoshi
6f462e824f examples/audio: Use the same audio file for Ogg and MP3
This also changes the sample rate to 32000 for some special
environments.
2021-02-21 17:57:06 +09:00
Hajime Hoshi
19d6f8d20a examples: Update resolutions
Fixes #1408
2020-10-31 02:06:45 +09:00
Hajime Hoshi
f1f7b350de audio, audio/mp3, audio/vorbis, audio/wav: Remove Close functions
Fixes #859
2020-10-07 23:39:58 +09:00
Hajime Hoshi
47065f5f2c Remove supporting jsgo
Updates #1129
2020-10-07 00:46:07 +09:00
Hajime Hoshi
944a19c6f7 audio: Remove the error returning value from NewContext
Updates #1380
2020-10-05 02:25:13 +09:00
Hajime Hoshi
29b4087ebf audio: Remove the error returning value from NewPlayerFromBytes
Updates #1380
2020-10-05 02:18:27 +09:00
Hajime Hoshi
8f00c8fbf5 ebiten: Remove the argument from Update
Fixes #1260
2020-10-04 19:33:10 +09:00
Hajime Hoshi
bf515bb594 Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00
Hajime Hoshi
e16a4cd85c examples: Use RunGame
Updates #1111
2020-04-12 19:03:04 +09:00
Hajime Hoshi
978ee26898 ui: Add function aliases *OnUnfocused for *InBackground
Now a window can be floating with SetWindowFloating, the functions
that have suffix 'IsBackground' seems misleading. However, we
cannot rename them due to backward compatibility. Then, let's add
aliases and revisit them when updating the major version of Ebiten.

Fixes #1102
2020-03-21 00:42:00 +09:00
Hajime Hoshi
32c04767da examples/audio: Switchable to MP3 from Ogg 2019-10-30 00:33:29 +09:00
Hajime Hoshi
5cd66b6d6b examples/audio: Remove unused functions 2019-01-15 02:13:18 +09:00
Hajime Hoshi
5a612f60b6 examples/audio: Bug fix: Do not close after Run
Now Run can return immediately on GopherJS.

In general, graceful shutdown should not be expected since there
is no 'end' phase on some environments.

Fixes #784
2019-01-15 02:11:23 +09:00
Hajime Hoshi
348e50c5e7 examples/audio: Show the current volume (#730) 2019-01-05 01:43:22 +09:00
Hajime Hoshi
2923bec0dc examples: Use TPS instead of FPS to indicate how fast the app works 2018-09-30 02:27:33 +09:00
Hajime Hoshi
eb0f0e6ced examples: Adjust samplerate not to cause resampling
Fixes #687
2018-09-28 03:55:28 +09:00
Hajime Hoshi
3d1d5d4355 examples/audio: Use Ogg again 2018-09-03 00:49:06 +09:00
Hajime Hoshi
3cd9dfd800 Rename IsRunningSlowly to IsDrawingSkipped
Fixes #643
2018-07-10 22:31:26 +09:00
Hajime Hoshi
eecb04eaea examples: Add jsgo build tag experimentally 2018-03-15 01:26:21 +09:00
Hajime Hoshi
cff14cbbd4 example: Embed resources (#552) 2018-03-14 03:13:46 +09:00
Hajime Hoshi
658c7cf452 examples: Use inpututil (#415) 2018-02-04 23:27:54 +09:00
Hajime Hoshi
80e4ee0998 ebitenutil: Remove JoinStringsIntoPath; Always use slash for ebitenutil.OpenFile
#428
2018-01-29 23:38:11 +09:00
Hajime Hoshi
20e12a7ea9 examples/audio: Refactoring 2018-01-22 02:15:04 +09:00
Hajime Hoshi
5c55df87d7 audio: Deprecate Size() and add Length() (#466) 2018-01-09 01:25:38 +09:00
Hajime Hoshi
10080d83e6 ebitentutil: Add JoinStringsIntoFilePath
Fixes #428
2017-12-16 23:29:35 +09:00
Hajime Hoshi
65b44928ad examples: Remove callsites of audio.Context.Update 2017-12-01 02:20:37 +09:00
Hajime Hoshi
4a13267590 examples/audio: Use DrawRect 2017-08-18 12:11:59 +09:00
Hajime Hoshi
5adfababee examples/audio: Fix comments 2017-08-08 02:09:45 +09:00
Hajime Hoshi
6b8ab59d1f examples/audio: Add comments 2017-08-08 02:06:24 +09:00
Hajime Hoshi
f0d47312c4 ui: Add IsRunnableInBackground / SetRunnableInBackground (#272) 2017-08-03 03:21:51 +09:00
Hajime Hoshi
3cac19d1b8 examples/audio: Remove 'loading' message 2017-07-15 00:55:39 +09:00
Hajime Hoshi
8912563555 examples/audio: Bug fix: Wrong file name 2017-07-09 15:30:21 +09:00
Hajime Hoshi
5cf7b2491a audio: Bug fix: noise on audio 2017-07-09 04:09:21 +09:00
Hajime Hoshi
e596271002 examples/audio: Change the music 2017-07-01 17:04:37 +09:00
Hajime Hoshi
9130c490c2 audio: Remove convert.Seeker: mp3.Decoded is now io.Seeker 2017-06-25 23:33:23 +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
09ce575774 audio/mp3: Add sample rate conversion 2017-06-18 22:51:11 +09:00
Hajime Hoshi
bf3f6c9ff6 audio/mp3: Start implementing 2017-06-12 23:32:42 +09:00
Hajime Hoshi
4b449bbc75 examples/audio: Change the music 2017-06-04 17:17:32 +09:00
Hajime Hoshi
7f39dc1e8b examples/audio: Improve the seeking message 2017-06-04 17:12:35 +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
035e4d321a examples/audio: Refactoring: Unify channel usages (#302) 2017-06-04 01:34:36 +09:00
Hajime Hoshi
579491afbd audio: Clarify concurrent safety 2017-06-04 01:03:01 +09:00
Hajime Hoshi
250afe97a5 examples/audio: Refactoring: Add Input struct (#302) 2017-06-04 00:01:48 +09:00