aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-03-05FFT support for SDL/Portaudio playbacktobigun3-38/+100
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@909 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-04removed overuse of DecimalSeperatorjaybinks4-56/+16
and re-implemented changes from changset#905 git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@906 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-04added code to handle , or . decimal seperators in song text files.jaybinks1-26/+26
initial checking, may still need work & testing on delphi etc git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@905 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-04Patchs from AlexanderS & f1fth_freed0mjaybinks2-45/+80
also some minor bug fixes from myself. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@904 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-04Patch from AlexanderSjaybinks1-1/+1
fixed bug with incorrect Lyric Slicing git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@903 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-03delphi 7 compatibility (inline was introduced with delphi 2005)tobigun3-11/+11
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@902 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-03- Input now supports multiple SampleRates (not fixed to 44100Hz anymore)tobigun10-790/+1148
- Input is not restricted to stereo input-devices anymore (mono and multi-channel devices work too) - Some improvements on the input-device detection - Retrieves native capture sample-rate on Vista and MacOSX with BASS (maybe this solves some problems with wrong sample-rates) - Capture-volume preview: a little modification to jay's approach. Now there are volume bars and pitch-displays. It needs some fine-tuning, maybe mog can do this if he likes. - Some indentation/clean-up/translations git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@900 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-03- actual.. -> current..tobigun6-34/+69
- USDX version-numbers in UConfig - some windows/lclintf dependencies removed - some indentation git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@898 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-03GetName added for AudioDecoder-Classestobigun1-7/+8
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@897 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-03- commented out some log-outputs that spammed the debug-outputtobigun1-2/+2
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@896 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-03- removed some windows/lclintf dependenciestobigun1-30/+24
- commented out some log-outputs that spammed the debug-output git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@895 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-03-03- Portaudio-Core added (at the moment just one helper function)tobigun1-0/+99
- Removed the version-number from the project-file (there were three different locations were version numbers were declared and one was wrong (UCore.Create stated it was beta)). I moved the USDX version number to UConfig.pas (Will be introduced in one of the following commits). git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@893 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-26[Alt+Return] enabledtobigun1-2/+3
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@890 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-26tidy up from my previous commitjaybinks1-16/+16
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@889 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-26added patch to toggle full screen with F11 jaybinks2-14/+57
( and tried Alt Enter. but not working yet ) also did some investigation into SDL Video modes on linux note this bug : https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/14044 git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@888 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-26Implemented resizable windowed mode..jaybinks2-3/+10
thanks for the idea rheo git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@887 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-24Fixed compilation on Mac OS X (XCode).eddie-08151-2/+2
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@885 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-22Linux fullscreen fixtobigun2-7/+2
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@883 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-21Delphi evaluates every $IF-directive even if it is disabled by a surrounding ↵tobigun1-0/+11
$IF or $IFDEF so the follwing will give you an error in delphi: {$IFDEF FPC}{$IF (FPC_VERSION > 2)}...{$IFEND}{$ENDIF} The reason for this error is that FPC_VERSION is not a valid constant. To avoid this error, i defined dummy-consts for delphi. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@876 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-20- Resampling support addedtobigun7-842/+1252
- DecodeStreams are closed now if they are not used anymore - Fixed the crash that occured when USDX was closed git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@875 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-20fixed video looping and background video playback on linux..jaybinks1-694/+693
( probably fixed stuff for windows also ) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@868 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-20Fixed a bug in the directory-handling routine.tobigun1-44/+49
USDX tried to close directories that might not have been opened (TheDir=nil) before. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@867 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-20fixed that damn bug with the NG path hack... grrrjaybinks2-2/+3
sorry .. also fixed FPC compile error in UVideo. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@866 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-19mmmmmmmmmmmmmjaybinks2-2/+3
Looping background images in the menu's ... http://trac2.assembla.com/usdx/ticket/5#comment:2 ( starting to get there ) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@865 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-19first steps towards loopable videos.jaybinks1-2/+18
( http://trac2.assembla.com/usdx/ticket/5 ) Currently videos specified in the song, will loop if they are shorter than the mp3. this should become selectable, however at the moment it will always loop if the video is shorter. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@863 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-19fix for editor bugjaybinks1-1/+1
( http://trac2.assembla.com/usdx/ticket/37 ) also fixed windows platform.halt , it didnt perform as expected. ( it would keep loading, instead of halting immediately ) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@862 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-19fixed bug when compiling with --enable-dev-buildjaybinks1-8/+11
thanks kdub / tobi ... sorry gusy, my bad :( git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@860 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-19added missing ";"tobigun1-3/+3
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@859 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-15Fixed a compiler error: "FindDiskFileCaseInsensitive() is unknown". tobigun1-1/+1
jaybinks: did you forget to commit any changes? As a quick fix I commented this out because it is just used in a log-output. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@858 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-13Fixed popUpBg image not displaying in game.jaybinks2-1147/+1180
this was not so much a problem with loading this type of texture, more so it was the fact that the file name had incorrect capitialization in the theme.ini file causing the png file to be not found on *nix systems. Ive implemented a workaround that will solve this without the theme files needing to be changed. so the game is now tolerant of themes having incorrect case in the filenames. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@849 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-13added USNG Song path , so we can use songs that a USNG install may have.jaybinks1-886/+893
dodgey implementation, but not important at the moment. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@847 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-12builds nice... and builds deb also that runs / works ..jaybinks1-0/+3
mostly :P git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@846 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-12changed InitializeSound to be responsive to failed module initializations, jaybinks1-14/+39
and to remove the module and try again. EG... in my case, sound card driver problems. ALSA is installed but wouldnt open the audio device. now it fails, and the output module goes to the next available ( if there is any ) then gracefully fails to dummy. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@845 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-12UVisualizer uses the system dependant default game-path nowtobigun2-9/+30
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@843 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-07SWScale will only be used if FFMpeg is available (this should be the ↵tobigun1-4/+15
standard case) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@839 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-07Audio output working againtobigun3-9/+1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@838 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-06fixed the configure stuff though it needs some further adjustmentstobigun1-4/+17
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@835 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05mapping of keypad-enter to the return-key (for jonaspaulo and his dead key)tobigun1-1053/+1057
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@833 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05bugfix: ResetSingTemp prevented a song from being played twice ("File not ↵tobigun1-0/+2
found" error). The error is due the change of TSong from a record to a class. This is because CurrentSong = CatSongs.Song[index] won't copy the whole data anymore but just a pointer. So the paths of CatSongs.Song[index] will be set to '' too what is not desired. Jay: Please revise this. If i remember correctly you wanted to set CurrentSong to nil instead of setting the paths to an empty string. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@830 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05General:tobigun11-2966/+3003
- cleanup and adaption of SingDrawOscilloscope Portaudio/SDL audio output: - stuttering in portaudio output has been fixed (SDL_MixBuffers cannot be used without initializing the SDL audio stuff first, so it is not usable with portaudio. Now SDL is used for audio-output instead of portaudio (although the file-name is UAudioPlayback_Portaudio.pas at the moment). - cleaner file closing - volume adjustment UMusic: - cleanup of the audio-interfaces - introduced TNoteType = (ntFreestyle, ntNormal, ntGolden) - some bug-fixes - introduced TSoundLibrary. This is library for all in-game sounds used by USDX. Instead of calling AudioPlayer.PlaySwoosh you should call AudioPlayer.PlaySound(SoundLib.Swoosh) now. You might call SoundLib.Swoosh.Play too, but this is not recommended at the moment because SoundLib.Swoosh could be nil if the file was not found. The SoundLibrary approach is much cleaner than the previous one. The AudioPlayer does not have to specify a Play... and Stop... method for every available sound anymore. In addition it is not an AudioPlayers responsibility to init the in-game sounds. URecord: - polish to english translation of some variables - CaptureSoundLeft/Right is CaptureChannel[0/1] now - TSoundCardInput -> TAudioInputDeviceSource - TGenericSoundCard.Input -> TGenericSoundCard.Source - autocorrelation algorithm more readable now - Clean-up of the audio-input interface - moved cloned code of the input-classes to one base class (TAudioInputBase) - Cleaner finalization - Start-/StopCapture will not crash anymore in the recording-options menu - Fixed several bugs in the autocorrelation stuff (e.g. wrong usage of $10000) - SzczytJest (now ToneValid) was not used correctly. ToneValid is set to true if a valid tone was found (= the sound was louder than the threshold -> no background noise). If i remember correctly the sound was accepted although the tone was invalid. So the old data was used although noone was singing. This resulted in some sort of ghost-singer effect. UIni: - moved TIni.Card to TScreenOptionsRecord.Card because it is not stored in the ini-file and will not be in the future. - TIni.CardList ist now TIni.InputDeviceConfig. The name cardlist was misleading because it just specifies input- but no output-devices. In addition a soundcard can have multiple input-devices (at least in linux). - bugfix on InputDeviceConfig (formerly CardList) usage. USDX expected that the indices of the corresponding elements in TIni.InputDeviceConfig[] and TAudioInputProcessor.Device[] were the same. This is wrong. If device 2 was defined at first place in the ini and device 1 at the second, the indices of the two arrays didn't match (they were swapped) erroneously. To fix this and to support the item listed below the index to TIni.InputDeviceConfig[] is now stored in TAudioInputDevice.CfgIndex. NOTE: InputDeviceConfig[] contains configurations of non-available (unplugged) devices. Iterate over TAudioInputProcessor.Device[] for available devices. - configurations of external devices that are not plugged in will not be deleted anymore. - multiple definitions of one device in the ini-file will not crash USDX anymore - CardList[I].ChannelL/R now are InputDeviceConfig[I].ChannelToPlayerMap[0/1]. I think the new name is more intuitive because it maps a channel to a player number. Now the both vars are joint to one array. Now it is possible to use loops to process them and we might support more than two input channels on one device in the future (if such devices exist) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@827 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05Added a SafeWriteLn()-function to support thread-safe console-output.tobigun1-278/+364
This is used in all Log...-Methods now (not for file-output yet). Don't use WriteLn anymore from external threads (for example in SDL or Portaudio Callbacks), otherwise FPC will crash. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@826 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05updated to use the new UConfig.pastobigun1-20/+22
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@825 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05Changed Delphi-define to MSWINDOWS (works in FPC too)tobigun1-1/+1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@824 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05- DirWatch-support with FPC (windows only)tobigun3-738/+845
- added UAudioCore_Bass.pas git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@823 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05Removed the FPC_V220 define. Now the build-in FPC_VERSION, FPC_RELEASE and ↵tobigun1-7/+13
FPC_PATCH macros are used. So no need to define the version in a config-file anymore (especially in windows). git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@816 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05Removed the "use nil instead of 0" warningstobigun1-2/+2
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@815 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05Update of the ffmpeg headers to their current trunk versions.tobigun2-7/+8
IMPORTANT: parameter of av_free_packet is a pointer now procedure av_free_packet (pkt: PAVPacket); as it is with av_free() and av_freep() git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@814 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05Introduction of config-file mechanism.tobigun1-0/+164
For now just the windows version. Linux and MacOSX later. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@813 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-05replaced Recording with AudioInputProcessor to conform to the new interface.tobigun1-11/+11
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@812 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-02-04small changes to check linux compilation.jaybinks1-5/+6
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@808 b956fd51-792f-4845-bead-9b4dfca2ff2c