aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/sound.cpp
AgeCommit message (Collapse)Author
2016-04-14JANITORIAL: Reduce audio header dependenciesOri Avtalion
2014-03-02CGE: Fix some uninitialized variablesStrangerke
2014-02-18CGE: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-15ALL: Remove optimization unstable code on checking for null after new.D G Turner
These issues were identified by the STACK tool. By default, the C++ new operator will throw an exception on allocation failure, rather than returning a null pointer. The result is that testing the returned pointer for null is redundant and _may_ be removed by the compiler. This is thus optimization unstable and may result in incorrect behaviour at runtime. However, we do not use exceptions as they are not supported by all compilers and may be disabled. To make this stable without removing the null check, you could qualify the new operator call with std::nothrow to indicate that this should return a null, rather than throwing an exception. However, using (std::nothrow) was not desirable due to the Symbian toolchain lacking a <new> header. A global solution to this was also not easy by redefining "new" as "new (std::nothrow)" due to custom constructors in NDS toolchain and various common classes. Also, this would then need explicit checks for OOM adding to all new usages as per C malloc which is untidy. For now to remove this optimisation unstable code is best as it is likely to not be present anyway, and OOM will cause a system library exception instead, even without exceptions enabled in the application code.
2012-06-24CGE: Fix FX stereoStrangerke
2012-03-28CGE: Close memory leak in sound Fx caching..D G Turner
2011-09-30CGE: Music now always loop, like in the original gameStrangerke
2011-09-17CGE: Move some more globals to CGEEngineStrangerke
2011-09-16CGE: Get rid of some more global functions and static membersStrangerke
2011-09-15CGE: Transform some static and globals into class membersStrangerke
2011-09-14CGE: Rewrite fileIOStrangerke
2011-09-11CGE: Fix formatting of operator overloadingStrangerke
2011-09-11CGE: Remove some more uses of VFile. Fix a shadowed variableStrangerke
2011-09-09CGE: Remove some static variables from fileIOStrangerke
2011-09-09CGE: Remove XFile, rename some membersStrangerke
2011-09-07CGE: Rename Han structures to HandlerStrangerke
Thanks to Fingolfin for pointing this out (as previous commit)
2011-09-07CGE: Remove wtom()Strangerke
2011-09-06CGE: Handle properly looping samplesStrangerke
2011-09-06CGE: Remove 'count' static variable from snailStrangerke
Thanks LordHoto for pointing it out
2011-09-06CGE: Take into account some of LordHoto's commentsStrangerke
2011-08-27CGE: Move IO classes to a separated source fileStrangerke
2011-08-20CGE: More misc cleanup.Alyssa Milburn
2011-08-19CGE: Suppress some dead codeStrangerke
2011-08-17CGE: Preserve const in cast.Alyssa Milburn
2011-08-13CGE: silent valgrind warningsStrangerke
2011-08-12CGE: Properly implemented MIDI music playbackPaul Gilbert
2011-08-12CGE: Work on implementing MIDI music playback.Paul Gilbert
Music playback is now sort of working, but it seems like only a beat track of the MIDI is getting played
2011-08-12CGE: Implemented sound effectsPaul Gilbert
2011-07-29CGE: Remove Startup class, set _fx and _sound as dynamicStrangerke
2011-07-25CGE: Remove EMM and EMS classesStrangerke
2011-07-04CGE: This ends the first renaming pass. Also move some functions to CGEEngineStrangerke
2011-07-03CGE: Some more renaming (WIP)Strangerke
2011-07-02CGE: Some more renaming (WIP)Strangerke
2011-07-02CGE: Some more renaming (WIP)Strangerke
2011-07-01CGE: Some more renaming (wip)Strangerke
2011-06-30CGE: Some more renaming (wip)Strangerke
2011-06-26CGE: Implement ForceExt and RCrypt. Little style cleanup.Strangerke
2011-06-13CGE: Cleanup: remove trailing spacesStrangerke
2011-06-13CGE: Format codeStrangerke
2011-06-11CGE: Remove DROP() macroStrangerke
2011-06-11CGE: Stubbing and cleanup made by SylvainTVStrangerke
2011-06-10CGE: Add namespacesStrangerke
2011-06-10CGE: Suppress typedef for byte, word and dword.Strangerke
2011-06-10CGE: Replace Boolean, TRUE and FALSE by bool, true, falseStrangerke
2011-06-10CGE: Remove far and near keywordsStrangerke
2011-06-10CGE: Add default header, fix some includesStrangerke
2011-06-09CGE: Add several sources based on headersStrangerke