Logo Search packages:      
Sourcecode: vcdimager version File versions

unsigned int vcdinfo_get_track_audio_type ( const vcdinfo_obj_t *  obj,
track_t  track_num 
)

Return the audio type for a given track. VCDINFO_INVALID_AUDIO_TYPE is returned on error.

Note: track 1 is usually the first track.

Return the audio type for a given track. VCDINFO_INVALID_AUDIO_TYPE is returned on error.

Note: track 1 is usually the first track.

Definition at line 1265 of file info.c.

References vcdinfo_get_track_audio_type(), and VCDINFO_INVALID_AUDIO_TYPE.

Referenced by vcdinfo_get_track_audio_type().

{
  TracksSVD *tracks;
  TracksSVD2 *tracks2;
  if ( NULL == obj || NULL == &obj->info ) return VCDINFO_INVALID_AUDIO_TYPE;
  tracks = obj->tracks_buf;

  if ( NULL == tracks ) return 0;
  tracks2 = (TracksSVD2 *) &(tracks->playing_time[tracks->tracks]);
  return(tracks2->contents[track_num-1].audio);
}


Generated by  Doxygen 1.6.0   Back to index