Open an Ogg Vorbis file. Definition at line 70 of file audio_format_vorbis.c. 00071 { 00072 OggVorbis_File *vfp; 00073 vorbis_info *info; 00074 00075 if (fd->stream) { 00076 /* Not yet */ 00077 return (-1); 00078 } 00079 00080 vfp = g_slice_new(OggVorbis_File); 00081 if (ov_open(fd->fp, vfp, NULL, 0) != 0) { 00082 g_slice_free(OggVorbis_File, vfp); 00083 return (-1); 00084 } 00085 00086 info = ov_info(vfp, -1); 00087 00088 fd->drv_data = vfp; 00089 fd->srate = info->rate; 00090 fd->channels = 2; /* XXX */ 00091 fd->time_len = ov_time_total(vfp, -1); 00092 00093 vorbis_read_comments(fd); 00094 00095 return (0); 00096 }
Here is the call graph for this function:
![]() |
1.6.3