Lines Matching defs:track
45 BTrackReader::BTrackReader(BMediaTrack *track, media_raw_audio_format const &format) :
55 if (track == NULL)
57 if (track->InitCheck() != B_OK)
60 SetToTrack(track);
62 // if the track was not set abort now
97 // find the first audio track
98 BMediaTrack *track;
101 track = fMediaFile->TrackAt(tr);
102 if (track == 0 || track->InitCheck() != B_OK)
105 if (track->DecodedFormat(&fmt) != B_OK)
108 audiotrack = track;
111 fMediaFile->ReleaseTrack(track);
114 ERROR("BTrackReader: no audio track in file\n");
120 // if the track was not set, release it
133 BTrackReader::SetToTrack(BMediaTrack *track)
140 if (B_OK == track->DecodedFormat(&fmt)) {
142 fMediaTrack = track;
149 if (B_OK == track->DecodedFormat(&fmt)) {
151 fMediaTrack = track;
158 if (B_OK == track->DecodedFormat(&fmt)) {
160 fMediaTrack = track;