Donate via Paypal
-
Recent Posts
Archives
- April 2022
- July 2020
- June 2019
- October 2018
- September 2017
- December 2016
- October 2016
- August 2016
- December 2015
- October 2015
- September 2015
- July 2015
- June 2015
- May 2015
- February 2015
- January 2015
- September 2014
- August 2014
- July 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- October 2010
- August 2010
- July 2010
Categories
Meta
Category Archives: C++
Oh noes, there could be a null pointer!
It’s been some time since I wrote anything about C++ programming, so here’s something. Sorry for users of HourGlass and other softwares of mine if this isn’t of much interest. 😉 (I will probably start a separate blog specifically about … Continue reading
Posted in C++, Programming
Leave a comment
C++11 : The three dots, that is variadic templates, part …
Variadic templates in C++11 allow writing functions that take in multiple parameters that can be of varying types.(*) What could this be useful for? We sometimes have to be able to generate hash values out of objects, that is a … Continue reading
Posted in C++, Programming
3 Comments
C++11, fun(ctional) times with lambdas
edit : Updated Event class code to use std::pair instead of a private struct This is a long blog post and quite technical in nature. Besides lambdas, many other C++11-only things will appear in the code examples. C++11 gained a … Continue reading
Posted in C++, Programming
Leave a comment
C++ : Movable but not copyable
C++11 allows an interesting new kind of classes to be created : ones that can be moved around but can’t be copied. This will be useful if one wants to have a “handle” object that manages a resource that is … Continue reading
Posted in C++
Leave a comment
Surprising bits and time scales
If you measure time in units of samples at a 44100hz sample rate with a 32 bit value : 4294967296/44100= 97391,5 seconds= 1623,2 minutes= 27,1 hours That might get a bit tight when dealing with surveillance recordings or extreme pieces … Continue reading
Posted in C++, Programming
2 Comments
HourGlass undo history flaw and a planned solution
Currently it works like this : So, each undo history step stores each envelope regardless of the envelope containing the same data or not…Hopefully I … Continue reading
Posted in C++, Programming, Uncategorized
Leave a comment
Forget pointers and embrace copying values
I recently watched an amazing talk by Sean Parent on C++ at : It’s rather technical (apart from the Photoshop demo around the 54 minute mark) and unfortunately with very bad audio quality. The rather ironic thing is that some … Continue reading
Posted in C++, Programming
1 Comment
Why the 32/64 bit confusion?
For some reason there’s an ongoing confusion about the following matrix : Native 32 bit floating point calculations Native 64 bit floating point calculations 32 bit memory addressing X X 64 bit memory addressing X X So, all combinations work … Continue reading
Posted in C++, Programming
Leave a comment
HourGlass memory usage : the present and future plans
HourGlass doesn’t currently handle the loaded sound files very efficiently in memory. Present scenario 1 : 4 different sound files loaded. All files may use at least double the memory really needed, as the offline processing has a memory buffer … Continue reading
Posted in C++, Programming
Leave a comment