Lines Matching refs:err
62 static void ErrorCheck(status_t err, const char* msg)
64 if (err)
66 fprintf(stderr, "* FATAL ERROR (%s): %s\n", strerror(err), msg);
122 status_t err;
143 err = r->SniffRef(inRef, B_BUFFER_PRODUCER | B_FILE_INTERFACE, &info);
144 ErrorCheck(err, "couldn't find file reader node\n");
146 err = r->InstantiateDormantNode(info, &mConnection.producer, B_FLAVOR_IS_LOCAL);
147 ErrorCheck(err, "couldn't instantiate file reader node\n");
150 err = r->SetRefFor(mConnection.producer, inRef, false, &dummy_length);
151 ErrorCheck(err, "unable to SetRefFor() to read that sound file!\n");
160 err = r->RegisterNode(mLogNode);
161 ErrorCheck(err, "unable to register LoggingConsumer node!\n");
188 err = r->GetFreeOutputsFor(mConnection.producer, &soundOutput, 1, &count);
189 ErrorCheck(err, "unable to get a free output from the producer node");
190 err = r->GetFreeInputsFor(mConnection.consumer, &logInput, 1, &count);
191 ErrorCheck(err, "unable to get a free input to the LoggingConsumer");
206 err = r->Connect(mConnection.source, mConnection.destination, &format, &soundOutput, &logInput);
207 ErrorCheck(err, "unable to connect nodes");