Permalink
Browse files

removed some debugging printf

  • Loading branch information...
1 parent 5bfd170 commit bf41df0fb2e25c7472922143e2f0b15a24ed06e3 @pgte committed Nov 11, 2011
Showing with 6 additions and 7 deletions.
  1. +1 −1 package.json
  2. +5 −6 player.cc
View
@@ -1,6 +1,6 @@
{
"name" : "roar"
- , "version": "0.1.0"
+ , "version": "0.1.1"
, "authors": [
"Pedro Teixeira"
]
View
@@ -188,7 +188,7 @@ void destroyerCB (v8::Persistent<Value> object, void* parameter) {
void AQBufferCallback (void* priv, AudioQueueRef AQ, AudioQueueBufferRef AQBuffer) {
- fprintf(stderr, "\nAQBufferCallback()");
+ // fprintf(stderr, "\nAQBufferCallback()");
return;
}
@@ -206,7 +206,7 @@ void AQBufferCallback (void* priv, AudioQueueRef AQ, AudioQueueBufferRef AQBuffe
v8::Handle<Value> Create (const Arguments &args) {
- fprintf(stderr, "\nOK *** Player::Create() BEGIN");
+ // fprintf(stderr, "\nOK *** Player::Create() BEGIN");
fflush(stderr);
HandleScope scope;
@@ -284,16 +284,15 @@ v8::Handle<Value> Push (const Arguments &args) {
return ThrowException(Exception::TypeError(String::New("Player::create(buffer): buffer.length must a multiple of 4")));
}
- fprintf(stderr, "bufferLength = %d\n", (int) bufferLength);
+ // fprintf(stderr, "bufferLength = %d\n", (int) bufferLength);
err= AudioQueueAllocateBuffer (
player->AQ, // AudioQueueRef inAQ
bufferLength, // UInt32 inBufferByteSize
&AQBuffer // AudioQueueBufferRef *outBuffer
);
- fprintf(stdout, "\nplayer->AQBuffer: %p\n", &AQBuffer);
- fflush(stdout);
+ // fprintf(stdout, "\nplayer->AQBuffer: %p\n", &AQBuffer);
if (err) {
AudioQueueDispose (player->AQ, true);
@@ -307,7 +306,7 @@ v8::Handle<Value> Push (const Arguments &args) {
memcpy(AQBuffer->mAudioData, bufferData, bufferLength);
AQBuffer->mAudioDataByteSize = bufferLength;
- fprintf(stderr, "mAudioDataByteSize = %d\n", AQBuffer->mAudioDataByteSize);
+ // fprintf(stderr, "mAudioDataByteSize = %d\n", AQBuffer->mAudioDataByteSize);
AQBuffer->mAudioDataByteSize = bufferLength;
err = AudioQueueEnqueueBuffer(player->AQ, AQBuffer, 0, NULL);

0 comments on commit bf41df0

Please sign in to comment.