Re: Decode ogg file while downloading: what are the good practices?
Matthieu Regnauld <[email protected]> Sat, 3 Nov 2018 15:40:06 +0100
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CADjM6tBvW8JErHqLV_j67-yS0WhFQ7XqdAn7PowQh0LTb+-7QQ@mail.gmail.com> |
--===============0266356206732033991== Content-Type: multipart/alternative; boundary="0000000000008bce4c0579c3a1d2" --0000000000008bce4c0579c3a1d2 Content-Type: text/plain; charset="UTF-8" I tried to call ov_open_callbacks(audioFile, &vorbisFile, NULL, 0, OV_CALLBACKS_NOCLOSE) before calling ov_pcm_seek() but the ov_pcm_seek() returns OV_EINVAL every time. The idea behind that was to update vorbisFile. Is there a way I can update vorbisFile so I can seek to the desired position? Thanks. --0000000000008bce4c0579c3a1d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di= r=3D"ltr">I tried to call=C2=A0<font face=3D"monospace, monospace">ov_open_= callbacks(audioFile, &vorbisFile, NULL, 0, OV_CALLBACKS_NOCLOSE)</font>= =C2=A0before calling=C2=A0<font face=3D"monospace, monospace">ov_pcm_seek()= </font>=C2=A0but the=C2=A0<font face=3D"monospace, monospace">ov_pcm_seek()= </font> returns=C2=A0<font face=3D"monospace, monospace">OV_EINVAL</font> e= very time.</div><div dir=3D"ltr"><br></div><div>The idea behind that was to= update=C2=A0 <span style=3D"font-family:monospace,monospace">vorbisFile</span>.</div><di= v><br></div><div>Is there a way I can update vorbisFile so I can seek to th= e desired position?</div><div><br></div><div>Thanks.</div></div></div></div= ></div> --0000000000008bce4c0579c3a1d2-- --===============0266356206732033991== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVm9yYmlzLWRl diBtYWlsaW5nIGxpc3QKVm9yYmlzLWRldkB4aXBoLm9yZwpodHRwOi8vbGlzdHMueGlwaC5vcmcv bWFpbG1hbi9saXN0aW5mby92b3JiaXMtZGV2Cg== --===============0266356206732033991==--