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
98 // find the first audio track
99 BMediaTrack *track;
102 track = fMediaFile->TrackAt(tr);
103 if (track == 0 || track->InitCheck() != B_OK)
106 if (track->DecodedFormat(&fmt) != B_OK)
109 audiotrack = track;
112 fMediaFile->ReleaseTrack(track);
115 ERROR("BTrackReader: no audio track in file\n");
121 // if the track was not set, release it
135 BTrackReader::SetToTrack(BMediaTrack *track)
142 if (track->DecodedFormat(&fmt) == B_OK) {
144 fMediaTrack = track;
151 if (track->DecodedFormat(&fmt) == B_OK) {
153 fMediaTrack = track;
160 if (track->DecodedFormat(&fmt) == B_OK) {
162 fMediaTrack = track;