Lines Matching refs:err

662 	status_t err = NewTempName(name);
663 if (err < B_OK) {
665 "new recording"), err);
669 err = fTempDir.FindEntry(name, &fRecEntry);
670 if (err < B_OK) {
672 "hold the new recording"), err);
675 err = fRecFile.SetTo(&fTempDir, name, O_RDWR);
676 if (err < B_OK) {
678 "hold the new recording"), err);
683 err = fRecFile.SetSize(4 * fRecordFormat.u.raw_audio.channel_count
687 if (err < B_OK) {
688 ErrorAlert(B_TRANSLATE("Cannot record a sound that long"), err);
698 err = MakeRecordConnection(fAudioInputNode);
699 if (err < B_OK) {
701 err);
739 status_t err = fPlayer->InitCheck();
740 if (err < B_OK)
817 status_t err = CopyFile(newFile, oldFile);
819 if (err == B_OK) {
859 status_t err = UpdatePlayFile(pItem, true);
860 if (err != B_OK) {
862 err == B_MEDIA_NO_HANDLER ? B_OK : err);
874 status_t err = B_OK;
880 err = fRoster->GetFreeOutputsFor(input, &audioOutput, 1,
883 if (err < B_OK) {
886 return err;
906 err = fRecorder->SetHooks(RecordFile, NotifyRecordFile, this);
908 if (err < B_OK) {
911 return err;
916 err = fRecorder->Connect(input, &audioOutput, &fRecordFormat);
918 if (err < B_OK) {
923 return err;
945 status_t err = B_OK;
946 err = fRecorder->Stop(true);
947 if (err < B_OK)
948 return err;
1060 status_t err;
1065 if ((err = fPlayFile->InitCheck()) < B_OK) {
1068 return err;
1140 RecorderWindow::ErrorAlert(const char * action, status_t err)
1143 if (err != B_OK)
1144 sprintf(msg, "%s: %s. [%" B_PRIx32 "]", action, strerror(err), (int32) err);
1168 status_t err;
1170 if ((err = fTempDir.GetEntry(&tempEnt)) < B_OK) {
1171 return err;
1173 if ((err = tempEnt.GetPath(&path)) < B_OK) {
1174 return err;
1388 status_t err = fPlayTrack->ReadFrames(data, &frames);
1389 if (frames <= 0 || err != B_OK) {
1390 if (err != B_OK)