Skip to content

Instantly share code, notes, and snippets.

@underdoeg
Created May 27, 2013 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underdoeg/5658717 to your computer and use it in GitHub Desktop.
Save underdoeg/5658717 to your computer and use it in GitHub Desktop.
ofBuffer handling
int size = 255*255;
char* blah = new char[size];
for(int i=0;i<size;i++)
blah[i] = (char)(int)ofRandom(-255, 255);
ofBuffer buffer;
buffer.append(blah, size);
ofBufferToFile("test.pcm", buffer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment