Thomas Goyne
e2a11f2d90
Speed up aging the block cache
...
Keep track of the total size rather than recalculating it every time as
calculating the size actually takes while.
2014-07-28 12:09:47 -07:00
Thomas Goyne
641f1e2e81
Simplify AudioSpectrumCacheBlockFactory a little
2014-07-28 12:09:47 -07:00
Thomas Goyne
7a3110015e
Change AudioDisplay::style_ranges to a vector
...
This is faster in all cases except for repainting a very small part of
the display with a very large number of range transitions and simplifies
the code a bit.
2014-07-28 12:09:47 -07:00
djcj
f81736d461
update config.guess and config.sub
2014-07-28 12:08:23 -07:00
djcj
4c09f696d1
add '(Language)' after translated labels as suggested on the forums: http://forum.aegisub.org/viewtopic.php?f=5&t=66925#p91569
2014-07-28 12:08:23 -07:00
Thomas Goyne
c9e4cea8ad
Fix handling for automation debug formatting errors
...
One spot was missed when converting stuff over to using error_Tag rather
than lua_error for stack unwinding on errors.
2014-07-26 20:38:56 -07:00
Thomas Goyne
eb0cf90433
Ensure the lua state gets closed when running tests
...
This is required for the gc metamethods to actually get run.
2014-07-23 15:29:55 -07:00
Thomas Goyne
de686bdb6f
Remove the automation thread priority stuff
...
It hasn't actually been used for anything for a while, and if a single
normal-priority thread can make your system unresponsive it's time to
upgrade to an OS that's isn't garbage.
2014-07-23 15:29:55 -07:00
Thomas Goyne
0cc941e559
Use wx events for invoking on the main thread on OS X
...
Dispatching to the main queue with GCD does not work when there is a
modal dialog active.
2014-07-23 15:29:55 -07:00
Thomas Goyne
e675cf10da
Don't version the executable on Linux
...
Release branches will continue to use versioned file names, but that
doesn't really make much sense for builds from master.
2014-07-23 15:29:54 -07:00
Thomas Goyne
d61a9664c6
Write a BOM at the beginning of subtitles to make unpatched VSFilter happy
...
Closes #1795 .
2014-07-23 15:29:54 -07:00
Thomas Goyne
45b5637e35
Update ffms2
2014-07-23 15:05:58 -07:00
Thomas Goyne
d311da75e0
Change LuaJIT's deployment target back to 10.4
...
Targetting 10.7 makes the error handler segfault, and targetting 10.4
appears to work fine.
2014-07-23 14:53:48 -07:00
Thomas Goyne
97b5163874
Patch os module methods to add Unicode support on Windows
2014-07-15 14:32:54 -07:00
Thomas Goyne
68b824c8ca
Patch io.open and io.popen to support Unicode filenames on Windows
2014-07-15 14:32:54 -07:00
Thomas Goyne
584284aa79
Reject vfr timecodes which are all identical
2014-07-15 09:11:40 -07:00
Xabier Aramendi
1835d5e2d8
Update Basque translation
...
Closes #1791 .
2014-07-15 07:15:10 -07:00
Thomas Goyne
897f9d1254
Eliminate some warnings
2014-07-14 10:10:22 -07:00
Thomas Goyne
771525ae6f
Make AssFixStylesFilter usable statically
...
Trivially speeds up ProcFrame as constructing export filters isn't free
due to that it has to look up the translatable strings.
2014-07-14 10:10:22 -07:00
Thomas Goyne
97c59e2630
Fix non-pch compilation
2014-07-14 10:10:22 -07:00
Thomas Goyne
92b8b2851b
Don't build the dialogue lexer on every use
...
Building the lexer takes much longer than actually lexing, and since the
lexer is stateless there's no reason not to just make it static.
2014-07-14 10:10:22 -07:00
Thomas Goyne
706a72d5c1
Eliminate several memory allocations per line when reading thesaurus files
2014-07-14 10:10:21 -07:00
Thomas Goyne
88a089721b
Merge pull request #7 from darealshinji/master
...
Fix compilation with PortAudio enabled
2014-07-12 07:23:57 -07:00
darealshinji
3c772dd649
fix Linux build
2014-07-12 01:31:26 +02:00
Thomas Goyne
a9019421f1
Fix memory leak in aegisub.text_extents on Windows
...
The old object returned by SelectObject has to be made active again
before the DC is destroyed or it doesn't get deleted.
2014-07-11 09:26:59 -07:00
Thomas Goyne
06367d5cd9
Don't convert encoding names to lowercase when writing files
...
Not only is it unnecessary, but it actively breaks the mapping of
user-friendly encoding names in the Export dialog to the real encoding
names.
Closes #1789 .
2014-07-11 09:26:59 -07:00
Thomas Goyne
548fbd814b
Fix a use-after-free when a SubsEditCtrl is destroyed while the thesaurus is loading
2014-07-11 09:26:58 -07:00
Thomas Goyne
4dc38447dc
Check the return value from lua_open()
...
It always fails when running under valgrind because valgrind does not
implement mmap functionality that LuaJIT requires.
2014-07-11 09:26:58 -07:00
Thomas Goyne
bffbae0ed9
Fix vc++ compilation
2014-07-10 12:55:38 -07:00
Thomas Goyne
bf03904fb8
Change the default ffms audio error handling mode to ignore
...
Truncating the file at the first decoding error seems to cause a lot of
confusion, especially since the UI doesn't mention that it happened
anywhere.
2014-07-10 11:44:57 -07:00
Thomas Goyne
2df4c4c194
Use wxDCFontChanger correctly
...
Fixes the audio display timeline font changing based on what else is
being painted.
2014-07-10 11:44:56 -07:00
Thomas Goyne
a5c2ef273f
Add tests for floating point sample conversion
2014-07-10 11:44:56 -07:00
Thomas Goyne
63de3232f7
Add test for channel downmixing
2014-07-10 11:44:56 -07:00
Thomas Goyne
f32bdff84a
Add tests for the sample doubling converter and make it work correctly
2014-07-10 11:44:56 -07:00
Thomas Goyne
93ad15efb1
Reuse the decoding buffer in the audio converters
2014-07-10 11:44:56 -07:00
Thomas Goyne
b9c75d8706
Add tests for the audio bitdepth conversions
...
And fix some bugs in it, and make it not rely on undefined behavior.
2014-07-10 11:44:56 -07:00
Thomas Goyne
585e9489d9
Move some of the audio provider machinery to libaegisub
...
And add tests.
2014-07-10 11:44:56 -07:00
Thomas Goyne
e942a7f0f7
Fix int overflow when saving audio clips
2014-07-08 16:38:33 -07:00
Thomas Goyne
e713f741a4
Make some functions static
2014-07-08 16:38:16 -07:00
Thomas Goyne
e60197962a
Fix buffer overflow when getting text extents
...
lfFaceName needs to be null-terminated, so only copy up to 31 characters
into the buffer.
2014-07-08 09:23:19 -07:00
Thomas Goyne
8a5b4ae3a3
Fix keycode mapping for backspace, enter, tab and escape
2014-07-08 09:23:19 -07:00
Thomas Goyne
a58ed7343d
Add Aegisub's include dirs before the system ones rather than after
2014-07-07 09:42:02 -07:00
Thomas Goyne
a11da3350c
Save a backup copy of the old hotkey file if migrating from the old format
2014-07-07 09:42:02 -07:00
Thomas Goyne
365c04333c
Install the unicode-compatible Lua module loader before loading moonscript
...
Closes #1760 .
2014-07-07 09:23:36 -07:00
Thomas Goyne
6c0752035c
Slightly optimize AssDialogue serialization
2014-07-07 08:40:38 -07:00
doplank
3844a1cb80
Update Indonesian translation
2014-07-07 08:40:38 -07:00
Thomas Goyne
5a14b36389
Remove unused test util functions
2014-07-06 19:25:49 -07:00
Thomas Goyne
935c6bc3a7
Store hotkeys in a less dumb format
2014-07-06 19:25:49 -07:00
Thomas Goyne
033baed930
Add simple tests for agi::Split
2014-07-06 19:25:49 -07:00
Thomas Goyne
2757ebd94f
Add character counter tests
2014-07-06 19:25:49 -07:00