(Michael Chinen)

Category: debugged

SoundCloud iOS integration gotchas

Last year when I was living in Berlin I had the opportunity to visit the SoundCloud campus where Henrik Lenberg and Eric Wahlforss were nice enough to talk to me about a range of things from Audacity to how SoundCloud functions as a development team. I’ve been to quite a few coorporate campuses and a […]

Return of the unsigned int gotcha for the unary ‘-‘ operator

I came across another unsigned int issue today. If you have an unsigned int and you negate it with the unary ‘-‘ operator, you will just get a really large unsigned integer value, and not a negative value. From my last post about unsigned int, you can’t do smallInt – unsignedInt and expect a negative […]

The Class Class as an argument in objective C++

When you say the same word over and over it starts to become meaningless. Mix this together with metaclasses and reflection. Then take objective-C and add it to C++. You then have an objective-C @Class construct for forward declaration, the Class object, the NSObject class method, and the C++ class keyword. It was only a […]

std::vector size() method and gotcha with unsigned vs signed

Guess who wins in signed vs unsigned integer conversion? I guessed wrong today, or rather, I’ve been assuming wrong for quite a while. consider this example: std::vector<SomeClass*> myVec; int countdown = -1; // … (fill the vector) if (countdown < myVec.size()) countdown++; // this will never get hit myVec.size() returns size_t, which is an unsigned […]

audio IO on the iPhone gotchas

This is a basic outline that I will expand on. I just finished debugging this stuff and want to write the main points before I forget my references and main issues. Summary: two basic gotchas of full duplex (record from mic and output to speaker) audio IO on the iphone that I ran into are: […]

Back to top