Lines Matching refs:file
27 BMediaFile* file;
57 BFileGameSound::BFileGameSound(const entry_ref* file, bool looping,
71 SetInitError(Init(new(std::nothrow) BFile(file, B_READ_ONLY)));
75 BFileGameSound::BFileGameSound(const char* file, bool looping,
91 if (get_ref_for_path(file, &node) != B_OK)
94 BFile* file = new(std::nothrow) BFile(&node, B_READ_ONLY);
95 SetInitError(Init(file));
123 fAudioStream->file->ReleaseTrack(fAudioStream->stream);
125 delete fAudioStream->file;
148 // start playing the file
161 // start reading next time from the start of the file
320 fAudioStream->file = new(std::nothrow) BMediaFile(data);
321 if (fAudioStream->file == NULL) {
327 status_t error = fAudioStream->file->InitCheck();
331 fAudioStream->stream = fAudioStream->file->TrackAt(0);
333 // is this is an audio file?
336 fAudioStream->file->ReleaseTrack(fAudioStream->stream);
342 fAudioStream->file->ReleaseTrack(fAudioStream->stream);
353 fAudioStream->file->ReleaseTrack(fAudioStream->stream);
362 // Since the buffer sized read from the file is most likely differnt
404 // start reading next time from the start of the file