Commit Graph
100 Commits
Author SHA1 Message Date
Steve Checkoway 0022407a7a I think this handles repeat events correctly now. It is hard for me to test it though. 2006-12-15 05:51:22 +00:00
Steve Checkoway 66e3eaa3e9 Fix crash on extra stage but I'm a little concerned that this is just covering up the real bug. 2006-12-12 12:24:27 +00:00
Steve Checkoway ebbd138a76 Cleanup. 2006-12-12 12:11:24 +00:00
Steve Checkoway eab92a7ded Tune, align loops. 2006-12-12 11:45:27 +00:00
Steve Checkoway 06bb8c9582 Use the float interface. 2006-12-11 13:55:05 +00:00
Steve Checkoway 996385f795 All subclasses to get float data. 2006-12-11 13:54:39 +00:00
Steve Checkoway e7832c9ad4 Mix using the vector unit on OS X. 2006-12-11 13:31:51 +00:00
Steve Checkoway 768c25ed1b Comment. 2006-12-11 13:31:10 +00:00
Steve Checkoway 02282d4a14 Loosen sse read restrictions. Tested. 2006-12-11 13:26:12 +00:00
Steve Checkoway 6c9632bdc6 Test misaligned reads. 2006-12-11 13:03:27 +00:00
Steve Checkoway 0c539b83ce Loosen altivec read restrictions. The src buffer still needs to be 16 byte aligned but the dest buffer only needs to be aligned for the type (2 bytes for int16_t and 4 for float). 2006-12-11 13:02:57 +00:00
Steve Checkoway d5e67ae508 The data is not unaligned, it will be aligned at the boundary natural for its size or larger. (Typically at a sizeof(void*) boundary.) It is misaligned in the sense that it isn't at the 16 byte boundary we require. 2006-12-11 10:33:35 +00:00
Steve Checkoway 1adb0fcc87 Add memory alignment hacks so I can run the test on x86 linux. The sse code is portable. 2006-12-10 13:55:18 +00:00
Steve Checkoway 84dc0ea84c Simplify compilation instructions. 2006-12-10 13:24:30 +00:00
Steve Checkoway 5e87581379 No need to assert, these are only used in once place and the preconditions are checked. Remove dependence on RageUtil (and global.h). Makes this easier to test. 2006-12-10 13:24:06 +00:00
Steve Checkoway 1c2fa7eff6 Ensure that the precondition is satisfied before calling those functions. Perhaps I'll fix the code to handle misaligned addresses at some point. 2006-12-10 13:13:47 +00:00
Steve Checkoway afa3284614 Intel instructions. SSE code tested and works. 2006-12-10 13:07:27 +00:00
Steve Checkoway 835bac88dd Test other read function while I am at it. 2006-12-10 12:07:25 +00:00
Steve Checkoway 7f02063b35 Add test for vector implementation of the sound mix buffer functions. 2006-12-10 11:38:44 +00:00
Steve Checkoway c850d0d86c Remove bogus assert. As long as dest is on a 4 byte boundary and src is on a 2 byte boundary (which gcc will ensure unless you're casting into to those types), this works correct. (Retested.) 2006-12-10 11:08:17 +00:00
Steve Checkoway 1cf1734d5a Fix window bug. 2006-12-10 10:20:32 +00:00
Steve Checkoway 95a08d5740 Add files. 2006-12-10 09:01:43 +00:00
Steve Checkoway 172033715f Only one thing opens a connection, the low level window. Anything depending on it can check directly if it is open or not. A native X11 loading window would probably use it as well and we wouldn't want to close and reopen the Display. hmm. 2006-12-07 13:09:20 +00:00
Steve Checkoway 027b94d2c1 Use descriptive names. 2006-12-07 13:00:30 +00:00
Steve Checkoway 0e38878528 We can be sure that if the low level window is going to be created, it will already have been created so we need only set the event masks here and they will be preserved across window recreations. 2006-12-07 12:56:22 +00:00
Steve Checkoway d1d9f1762e Keep the event mask across window recreates. Close the display, I did not mean to remove that. 2006-12-07 12:54:24 +00:00
Steve Checkoway 32e20beefc manager -> handler 2006-12-07 12:35:19 +00:00
Steve Checkoway f299862e19 Update comment. 2006-12-07 12:33:39 +00:00
Steve Checkoway d92dcfc6f7 Delete the gl contexts when we create new ones or shut down. 2006-12-07 12:03:48 +00:00
Steve Checkoway 93be46923a Simplify. Do not use Open/CloseMask for the MapNotify events. 2006-12-07 11:51:42 +00:00
Steve Checkoway a1ae4ce45a Improve readability by removing all X11Helper::s. 2006-12-07 11:00:24 +00:00
Steve Checkoway a62c3a88b1 Update. Make sure all windows are destroyed. 2006-12-07 10:53:50 +00:00
Steve Checkoway a6016a9c03 Simplify. Only have a single window creation function. 2006-12-07 10:51:17 +00:00
Steve Checkoway 745fc68b9d Simplify. 2006-12-07 08:41:54 +00:00
Steve Checkoway 19cee71210 Return values not used. 2006-12-07 08:31:40 +00:00
Steve Checkoway e03934c21f Do not rebuild the lookup table each time the function is called. 2006-12-07 08:17:18 +00:00
Steve Checkoway 971e34e0c7 Fix input handling code. Read key presses/releases in order. If two presses in a row come, do not send another event. Do not disable key repeats. 2006-12-07 08:15:50 +00:00
Steve Checkoway 8329d2babe If the column is invalid, return. 2006-12-06 07:16:38 +00:00
Steve Checkoway aae2e61da2 Games are totally immutable. 2006-12-05 21:02:26 +00:00
Steve Checkoway 46c8af6059 Styles are totally immutable. 2006-12-05 21:00:28 +00:00
Steve Checkoway 97d1a98020 Cleanup formatting, comment. 2006-12-02 19:33:17 +00:00
Steve Checkoway 3d2cee0cfa Simplify. 2006-12-02 18:51:59 +00:00
Steve Checkoway 02dd8e1edd Unused. 2006-12-02 18:46:11 +00:00
Steve Checkoway 3637f83f69 Unused. 2006-12-01 18:22:22 +00:00
Steve Checkoway 2250322d41 trylock 2006-12-01 18:17:16 +00:00
Steve Checkoway 1c980ddf4a Add files. 2006-12-01 07:18:16 +00:00
Steve Checkoway 0c21055858 Nothing returns false. 2006-11-28 17:57:16 +00:00
Steve Checkoway 73832dfafd Fix comment. 2006-11-28 12:09:51 +00:00
Steve Checkoway c854585b3a Add remove files. 2006-11-28 01:23:06 +00:00
Steve Checkoway ba1bdccafc Fix copy ctor when sizeof(T) > 1. 2006-11-28 00:58:29 +00:00
Steve Checkoway be152b017e Add files. 2006-11-22 07:20:27 +00:00
Steve Checkoway 2b762a116b Fix compile. 2006-11-22 05:51:10 +00:00
Steve Checkoway d4c9aa8e00 add missing files. 2006-11-19 02:01:22 +00:00
Steve Checkoway 7f7b0ecb5d Don't create a new class just to register a function with lua. 2006-11-19 00:53:43 +00:00
Steve Checkoway dc4d0317b5 Don't create a new class just to register a screen. 2006-11-19 00:33:52 +00:00
Steve Checkoway 62b0d80b72 Sort by name. 2006-11-18 22:12:23 +00:00
Steve Checkoway 5a0220d780 Add file. 2006-11-18 20:33:59 +00:00
Steve Checkoway 401514e397 Other arches. Untested. 2006-11-18 20:33:35 +00:00
Steve Checkoway b85a488f89 Move the sound driver out of arch.cpp. 2006-11-18 20:33:27 +00:00
Steve Checkoway 1e505ff81e copy/paste error. 2006-11-18 20:27:15 +00:00
Steve Checkoway 7d6a2a7079 fix 2006-11-18 20:07:38 +00:00
Steve Checkoway ce35f77653 simplify 2006-11-18 19:59:25 +00:00
Steve Checkoway a627776c31 Fix path. 2006-11-18 19:55:43 +00:00
Steve Checkoway 762cdd272d Simplify. 2006-11-18 19:53:39 +00:00
Steve Checkoway 729185ed8e Add file. 2006-11-18 19:37:03 +00:00
Steve Checkoway a25915855a Update other arches. Not tested. 2006-11-18 19:35:02 +00:00
Steve Checkoway 6365e3607f Move stuff out of arch using a registration system modeled after Screen. 2006-11-18 19:34:28 +00:00
Steve Checkoway 2b3c8034f5 Move to arch.cpp along with the other functions defined in arch.h. 2006-11-17 19:46:07 +00:00
Steve Checkoway 5cc2c5e2c4 Fix compile. 2006-11-17 19:42:11 +00:00
Steve Checkoway 79707403cd Fix paths. 2006-11-17 19:17:11 +00:00
Steve Checkoway 18c7dee53b Remove files. 2006-11-17 18:25:45 +00:00
Steve Checkoway 0d10c76e87 Unscatter arch includes. 2006-11-17 18:25:20 +00:00
Steve Checkoway 5f9ee5c5bd Set sample rate of the device, if possible. 2006-11-17 17:37:51 +00:00
Steve Checkoway db89c28b25 Param table. 2006-11-17 17:18:35 +00:00
Steve Checkoway 1ea6837c02 Header cleanup. 2006-11-17 17:13:39 +00:00
Steve Checkoway fbaccae793 Use the audio unit driver. 2006-11-17 17:00:11 +00:00
Steve Checkoway e988ea9945 Survive device changes, (external) sample rate changes, etc. 2006-11-17 16:59:22 +00:00
Steve Checkoway dee3db204f Add missing files. 2006-11-17 16:58:04 +00:00
Steve Checkoway 02bfa44d0f Pass the param table along. 2006-11-16 10:17:08 +00:00
Steve Checkoway 1f79f25240 Fix crash by stopping the audio _on_ the real time thread. This ensures that the current buffer gets played but that it never gets called again. I'm not convinced that the property listeners won't get called but I'm not sure how to handle those sanely just yet, at least in a lockless manner.
This code doesn't handle external format changes very well yet--but then, neither does the other sound driver.
2006-11-12 09:04:14 +00:00
Steve Checkoway c4fe855aca Spacing. 2006-11-04 23:36:42 +00:00
Steve Checkoway 63bb4faf7d Make NotesWriterDWI also a namespace. 2006-11-04 23:36:11 +00:00
Steve Checkoway 0ed39a2f5e No persistent data so make it a namespace. 2006-11-04 23:28:33 +00:00
Steve Checkoway 4ab88447f4 Make static, nonmember functions. 2006-11-04 23:23:41 +00:00
Steve Checkoway d9a533bf9f Simplify. 2006-11-03 05:44:57 +00:00
Steve Checkoway 4f4c6b5e87 Fix compile. 2006-11-03 05:33:43 +00:00
Steve Checkoway 360f1e66d5 Simplify. 2006-11-03 04:49:29 +00:00
Steve Checkoway 24a5651f0e Remove all items from a collection equal to a particular element in linear time. Only really useful for Sequences. 2006-11-03 04:46:36 +00:00
Steve Checkoway d571048d2b This is overkill for such a simple operation. Doing it this way should optimize to a single add and it doesn't have any of the problems associated with breaking aliasing rules. 2006-11-01 11:30:41 +00:00
Steve Checkoway cf3a76b600 Doing these conversions through a union is not safe either but more to the point, it isn't what's happening here. 2006-11-01 11:19:52 +00:00
Steve Checkoway e3e5cf77e5 Don't include Foreach.h in RageUtil.h which does not use it. Instead, include it in the individual files that actually use it. 2006-11-01 11:18:46 +00:00
Steve Checkoway b7493d25f7 Style. 2006-11-01 10:58:59 +00:00
Steve Checkoway f241645ff5 Unneeded. 2006-11-01 10:58:29 +00:00
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +00:00
Steve Checkoway c0a119bf10 Unneeded. 2006-11-01 10:34:20 +00:00
Steve Checkoway 5f851a47ca Make GetApplicableFiles() static and don't create a loader unless it can load from that directory. 2006-11-01 10:09:13 +00:00
Steve Checkoway a9e04a845a Unused. 2006-11-01 09:42:44 +00:00
Steve Checkoway 0276292b9f Revert. The encoding concerns brought up on the mailing have not been addressed. 2006-11-01 08:45:29 +00:00
Steve Checkoway b5e66c2712 "Foo\tBar - Baz" should be parsed as title = "Foo", subtitle = "Bar - Baz", not title = "Foo\tBar", subtitle = "- Baz" 2006-10-31 10:24:24 +00:00
Steve Checkoway 9ef4cf40e0 Scale GetTotalPossibleStepsSeconds() by fMusicRate. Fixes ComboGraph and GraphDisplay when using a different music rate. 2006-10-30 10:00:43 +00:00