Commit Graph

76 Commits

Author SHA1 Message Date
Jean-André Santoni
bcdda51812 Fix audio with coreAudioSample 2018-04-29 14:47:36 +07:00
Jean-André Santoni
8ab44d028c
Update README.md 2018-04-28 23:37:25 +07:00
Jean-André Santoni
f4ba9ede7f Fix audio 2018-04-28 20:27:53 +07:00
Jean-André Santoni
29ccdb8ebf Sleep 1 millisecond 2018-04-28 15:40:39 +07:00
Jean-André Santoni
80cc7b8623 Add the audio buffer ring 2018-04-28 11:58:27 +07:00
Rob Loach
370a541e44 Add framebuffer and viewport resizing (#10) 2018-04-27 22:04:17 +07:00
Rob Loach
02068a642d Add the Core name to the Window title (#11)
Make it so that the core name is appended to the window title, ala `nanoarch - FFCEUmm`. This only happens if a library name is discovered.
2018-04-27 22:02:10 +07:00
Jean-André Santoni
7cbfda1d7c Use va_list for the core log 2018-04-27 15:24:05 +07:00
Jean-André Santoni
6cc15f5b5b Stub for RETRO_ENVIRONMENT_GET_VARIABLE 2018-04-27 14:18:38 +07:00
Jean-André Santoni
7ae513665a Remove useless code 2018-04-27 13:19:50 +07:00
Jean-André Santoni
b4e60ef2f6 Fix resolution switching 2018-04-27 13:15:30 +07:00
Jean-André Santoni
934bfe1ecb Make window resizable 2018-04-27 10:15:45 +07:00
Jean-André Santoni
ee34e0bb75 Refactoring 2018-04-27 09:50:57 +07:00
Jean-André Santoni
4b548f5263 Don't play an already playing source 2018-04-26 21:58:51 +07:00
Jean-André Santoni
8f1f8c10df Only unqueue buffers when the source.BuffersProcessed is non zero 2018-04-26 21:25:15 +07:00
Jean-André Santoni
aeae3970e4 Fix FBA compatibility 2018-04-25 20:01:10 +07:00
Rob Loach
0575b7b85c feat: Add call to unload_game() and deinit() (#7) 2018-04-24 22:59:58 +07:00
Jean-André Santoni
abedf7bd8a
[WIP] Stream audio with two buffers (#6)
* Pass an unsafe.Pointer directly to BufferData

* Make the code closer to RA openal driver

* Audio is almost working

* Fix pixFmt
2018-04-24 22:59:19 +07:00
Rob Loach
6388752466 feat: Add RETRO_ENVIRONMENT_GET_USERNAME (#5)
Allows cores to load the given user's username.

- https://golang.org/pkg/os/user/
2018-04-24 11:40:37 +07:00
Rob Loach
6380bf9b6c feat: Add RETRO_ENVIRONMENT_SHUTDOWN (#4)
This allows cores to close the application.
2018-04-24 11:40:19 +07:00
Jean-André Santoni
3a60e91289 Make noise 2018-04-21 17:15:12 +07:00
Jean-André Santoni
401374ebf5 Calculate audio.numBuffers 2018-04-21 15:03:42 +07:00
Jean-André Santoni
0093d5d0a3
Add travis file (#3)
* Add travis file

* Add dependencies for the travis build

* Fix libopenal dependency for travis

* Add OSX support and try to fix libglfw

* Add glfw3 ppa

* Try to use before_install for linux

* Add libX11-dev

* This may fix the linux build

* Try to add all sort of checks

* This should fix megacheck

* Remove the gofmt check that is broken for some reasons

* Test for go 1.9

* I removed a useful line

* Remove go 1.10 for now
2018-04-21 14:24:27 +07:00
Jean-André Santoni
2d6cac677d
Merge pull request #2 from RobLoach/escape
Close the window on escape
2018-04-21 11:52:09 +07:00
Jean-André Santoni
5d6ec026e8
Update README.md 2018-04-21 11:51:07 +07:00
Jean-André Santoni
1bbfbb6d2c
Create README.md 2018-04-21 11:47:41 +07:00
Jean-André Santoni
f43acb6e83 Remove useless dependency 2018-04-21 11:31:31 +07:00
Jean-André Santoni
bc0a17a819 Port more OpenAL stuff 2018-04-21 11:17:11 +07:00
Jean-André Santoni
4d673e2919 Start adding OpenAL support 2018-04-21 11:10:35 +07:00
Rob Loach
027ad6ddac
feat: Close the window on escape 2018-04-20 13:10:21 -04:00
Jean-André Santoni
08ed11b4e1 Implement inputs 2018-04-20 23:09:57 +07:00
Jean-André Santoni
158563f555 Implement resizeToAspect 2018-04-20 22:32:57 +07:00
Jean-André Santoni
65aaa7e383 Scale window size 2018-04-20 22:12:54 +07:00
Jean-André Santoni
fcee27747b Fix upside down texture 2018-04-20 21:55:58 +07:00
Jean-André Santoni
dd9f26d0f7 Code cleaning 2018-04-20 20:01:58 +07:00
Jean-André Santoni
9af3a84b2b Implement createWindow 2018-04-20 18:27:34 +07:00
Jean-André Santoni
3095812c0b Implement videoConfigure and retro_get_system_av_info 2018-04-20 18:07:39 +07:00
Jean-André Santoni
97c3c14a6a Move some global vars to the video struct 2018-04-20 16:34:22 +07:00
Jean-André Santoni
61ad247745 Implement coreVideoRefresh 2018-04-20 16:03:08 +07:00
Jean-André Santoni
c3c0e42d24 Start implementing video 2018-04-20 15:31:55 +07:00
Jean-André Santoni
11b2db122b Move stuff to videoRender 2018-04-20 13:22:34 +07:00
Jean-André Santoni
0bc6f7869b Implement retro_run 2018-04-20 13:08:56 +07:00
Jean-André Santoni
47add892f1 coreLoadGame is now working 2018-04-20 12:02:13 +07:00
Jean-André Santoni
522236b391 Implement retro_get_system_info 2018-04-20 11:48:36 +07:00
Jean-André Santoni
2e5f45f78b Implement RETRO_ENVIRONMENT_SET_SYSTEM_DIRECTORY 2018-04-20 11:34:50 +07:00
Jean-André Santoni
1fa24da11b Start implementing coreLog 2018-04-20 11:21:54 +07:00
Jean-André Santoni
bead8d2039 Start implementing coreLog 2018-04-19 23:46:46 +07:00
Jean-André Santoni
a92b8263a5 Fix coreAudioSampleBatch 2018-04-19 23:33:27 +07:00
Jean-André Santoni
a461dff601 Stubs for SetAudioSample and SetAudioSampleBatch 2018-04-19 23:26:27 +07:00
Jean-André Santoni
86ecc7d0ff Stub for set_input_state 2018-04-19 23:15:16 +07:00