aboutsummaryrefslogtreecommitdiffstats
path: root/src/media (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bugfix: do not call Inc() on PByteArray pointers. It will not increment by ↵tobigun2010-06-191-1/+1
| | | | | | one byte, but by SizeOf(ByteArray) bytes which is some KB. As a result the pointer will point to an illegal memory address. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2549 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed x-position of glScissor test in UVideo.Draw and UVideo.DrawReflection ↵brunzelchen2010-06-151-2/+2
| | | | | | (video was visible on the first screen only) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2527 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Fix for invalid song lengthstobigun2010-06-131-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2511 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fTimeBase is NOT the time-base of the FFmpeg stream -> renamed to ↵tobigun2010-06-121-28/+21
| | | | | | fFrameDuration to avoid wrong usage git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2501 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fix seeking in videostobigun2010-06-121-1/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2500 b956fd51-792f-4845-bead-9b4dfca2ff2c
* merge of VideoPreview branch into trunkbrunzelchen2010-06-103-80/+642
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2475 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Do not overwrite a devices MicSource if it is already set (Note: MicSource ↵tobigun2010-06-061-2/+5
| | | | | | is not used at the moment) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2447 b956fd51-792f-4845-bead-9b4dfca2ff2c
* compare FFmpeg header and DLL versions and log an error if both do not matchtobigun2010-06-051-0/+75
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2442 b956fd51-792f-4845-bead-9b4dfca2ff2c
* prefix class fields with 'f'tobigun2010-06-031-272/+272
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2439 b956fd51-792f-4845-bead-9b4dfca2ff2c
* better EOF handling for FFmpeg audio decoding (EOF handled like it is done ↵tobigun2010-06-031-3/+12
| | | | | | in UVideo) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2438 b956fd51-792f-4845-bead-9b4dfca2ff2c
* revert of last made changes (rev. 2409)brunzelchen2010-05-241-163/+46
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2410 b956fd51-792f-4845-bead-9b4dfca2ff2c
* added window-mode and reflection-mode to DrawGLbrunzelchen2010-05-231-46/+163
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2409 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fix No. 2 of ffmpeg update. Move from CodecType to AVMediaType.k-m_schindler2010-05-121-1/+21
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2364 b956fd51-792f-4845-bead-9b4dfca2ff2c
* portaudio playback (not used by default) segfault fixedtobigun2010-04-303-22/+71
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2321 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - device input latency is now configurable via config.initobigun2010-04-271-17/+48
| | | | | | | | - latency[i] determines the latency for device i in milliseconds or -1 for autodetection (default) - this is necessary as mic capturing with portaudio (on linux) gets stuck if latency is too low. Either because portaudio's latency autodetection does not work or because the mic capture callback takes too long before it returns. In both cases the user should set the latency to a value of 100 (ms). - better input device test, it should not remove working devices anymore. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2313 b956fd51-792f-4845-bead-9b4dfca2ff2c
* wrong usage of glTexEnvi fixedtobigun2010-04-251-2/+5
| | | | | | | | - the environment must be GL_TEXTURE_ENV and not GL_TEXTURE_2D - it must be set before a draw function (glBegin(), ...) and not before glTexImage2D() as the current texture will not store this setting (the setting is global for all textures). - the setting must be set to the default (GL_MODULATE) after usage, otherwise later opengl drawing calls will be unwantedly affected too. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2309 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - now it is possible to sync lyrics to audiotobigun2010-04-222-0/+2
| | | | | | | | - ini option SyncTo added - lyric to audio is default now (instead of sync audio to lyrics) - modified RelativeTimer (hopefully easier to use and more self-explanatory) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2273 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed choppy start of some songs when using ffmpegtobigun2010-04-211-24/+33
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2270 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed bug in SDL/Portaudio playback stream:tobigun2010-04-211-2/+4
| | | | | | - positioning was broken in revision 1661 (9.4.2009, a long time) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2269 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - fixed UAudioPlayback_SoftMixer.GetPosition():tobigun2010-04-211-6/+56
| | | | | | | | | - previously it returned the position that would have been reached after ALL data that was returned at ReadData() was processed by the engine - due to this the returned position did not change for about 40ms (with SDL, samples: 2048, 44.1kHz) and the position was too far ahead (40ms) - this has been fixed by guessing the amount that is still buffered by the engine (SDL or portaudio) - sync should work better now with SDL and portaudio (BASS is not affected by this patch) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2263 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - better lyric <-> video synctobigun2010-04-211-39/+139
| | | | | | | | - fixed glTexEnv() bug: GL_TEXTURE_2D is not valid here - pixel buffer test - some cleanup git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2261 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - add video loop optiontobigun2010-04-213-214/+378
| | | | | | - allow multiple instances of a video git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2260 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - force a BASS version >= 2.4.2 as the BASS ABI is slightly different ↵tobigun2010-04-201-3/+20
| | | | | | | | (although we don't use the changed stuff) - IMPORTANT: if a version < 2.4.2 is present, usdx will log an error message but will start without sound. If you don't get sound anymore, update BASS git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2256 b956fd51-792f-4845-bead-9b4dfca2ff2c
* bugfix for crash with portaudio (all platforms):tobigun2010-04-192-22/+43
| | | | | | | | | | | - UAudioInput_Portaudio: UnifyDeviceNames was called with the wrong index further changes: - BASS input source-names seem to be encoded with local encoding and are converted to UTF8 - Portaudio source and device names encoding is auto-detected and converted to UTF8 - some clean-up git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2252 b956fd51-792f-4845-bead-9b4dfca2ff2c
* open ffmpeg video and audio files in shared mode. Crashed previously when a ↵tobigun2010-04-181-1/+1
| | | | | | file was opened twice in read-only mode. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2248 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - save input device names as UTF8Stringswhiteshark02010-04-132-4/+8
| | | | | | | | | - device names of basslib are assumed to be in local encoding - device names of portaudio are assumed to be in utf-8 fixes: display of device names w/ special characters w/ basslib ('ä' for me) to-do: proof encoding of device names for basslib and portaudio git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2234 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - Revert quick-fix from revision 2000tobigun2010-04-061-1/+1
| | | | | | - The problem has been fixed by the previous commit (overload Path()) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2220 b956fd51-792f-4845-bead-9b4dfca2ff2c
* rename cosmetics. no code change.k-m_schindler2010-03-121-25/+25
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2192 b956fd51-792f-4845-bead-9b4dfca2ff2c
* cosmetics. no code change.k-m_schindler2010-02-251-16/+16
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2156 b956fd51-792f-4845-bead-9b4dfca2ff2c
* cosmetics. no code change.k-m_schindler2010-02-251-21/+20
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2155 b956fd51-792f-4845-bead-9b4dfca2ff2c
* unifiy the name of portaudio inputsk-m_schindler2010-02-241-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2153 b956fd51-792f-4845-bead-9b4dfca2ff2c
* small editsk-m_schindler2010-02-071-20/+18
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2102 b956fd51-792f-4845-bead-9b4dfca2ff2c
* revert submission 2051. leeds to crash on 2nd song.k-m_schindler2009-12-292-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2056 b956fd51-792f-4845-bead-9b4dfca2ff2c
* changed TSyncSource to interface ISyncSources_alexander2009-12-202-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2051 b956fd51-792f-4845-bead-9b4dfca2ff2c
* added starting pts handlings_alexander2009-12-081-12/+16
| | | | | | | | some video files have a starting point for the pts calculation that starting point has to be subtracted from the pts of each frame to avoid hanging of the video git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2003 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fix: open video files with the system's native encoding and path delimiter.brunzelchen2009-12-071-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2000 b956fd51-792f-4845-bead-9b4dfca2ff2c
* merged unicode branch (r1931) into trunks_alexander2009-11-0910-58/+214
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1939 b956fd51-792f-4845-bead-9b4dfca2ff2c
* resolve some type size mismatch warnings + an additional check.k-m_schindler2009-05-151-4/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1727 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Hint about removal of deprecated function img_convert added, but no code changek-m_schindler2009-05-131-0/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1724 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Warnings and Notes cleanupk-m_schindler2009-04-091-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1663 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Warnings and Notes cleanupk-m_schindler2009-04-092-4/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1662 b956fd51-792f-4845-bead-9b4dfca2ff2c
* Warnings and Notes cleanupk-m_schindler2009-04-091-4/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1661 b956fd51-792f-4845-bead-9b4dfca2ff2c
* overdrawing of first screen when using visualizations fixed. visualizations ↵whiteshark02009-03-071-5/+10
| | | | | | are still streched over both screens when UseTexture in UVisualizer is undefined git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1628 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed first screen was cleared when second screen was drawn. #76 should be ↵whiteshark02009-03-011-2/+12
| | | | | | | | | fixed now commented some weird stuff in TScreenSing.Draw git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1613 b956fd51-792f-4845-bead-9b4dfca2ff2c
* patch #2388324. Exit with corrupt videos. Courtesy to Hawkeark-m_schindler2009-02-151-1/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1593 b956fd51-792f-4845-bead-9b4dfca2ff2c
* PChar replaced by PByteArray (for byte buffers) or PAnsiString (for ↵tobigun2009-02-046-59/+57
| | | | | | zero-terminated strings) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1583 b956fd51-792f-4845-bead-9b4dfca2ff2c
* improved seeking:tobigun2008-11-031-50/+85
| | | | | | | | - the position will not be set to non-keyframes (AVSEEK_FLAG_ANY) anymore as it might result in gray or green pictures (FFmpeg does not use the information of the last keyframe after seeking) - after seeking the texture was not updated correctly. - some comments added git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1497 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - swscale get_context parameter from cint -> TAVPixelFormattobigun2008-10-311-6/+6
| | | | | | - some refactoring missed last time git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1489 b956fd51-792f-4845-bead-9b4dfca2ff2c
* - cleanup (private and protected class members prepended with f...)tobigun2008-10-311-214/+266
| | | | | | - TAspectCorrection introduced (default: crop) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1487 b956fd51-792f-4845-bead-9b4dfca2ff2c
* The size given to TextGL.SetSize() now expresses the size in pixel (formerly ↵tobigun2008-10-191-2/+2
| | | | | | | | | | | | | it was 1/3 of the pixel-size). For theme and plugin compatibility the following functions multiply the size with 3: - UScreenSingModi.Print - TTheme.ThemeLoadText - TTheme.ThemeLoadSelectSlide TODO: Convert the themes/plugins and remove the "*3" git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1459 b956fd51-792f-4845-bead-9b4dfca2ff2c