Skip to content

Commit

Permalink
removed some debugging printf
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Nov 11, 2011
1 parent 5bfd170 commit bf41df0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "roar"
, "version": "0.1.0"
, "version": "0.1.1"
, "authors": [
"Pedro Teixeira"
]
Expand Down
11 changes: 5 additions & 6 deletions player.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit bf41df0

Please sign in to comment.