search for: ov_pcm_seek

Displaying 20 results from an estimated 28 matches for "ov_pcm_seek".

2001 Mar 12
1
ov_pcm_seek
How do I seek back to the beginning of a stream using ov_pcm_seek()? ov_pcm_seek(0) doesn't seem to do anything, though ov_pcm_tell() returns 0 right after opening the stream. I'm now using ov_pcm_seek(1) which seems to work, but I'm not sure if that's really right. Are PCM offsets meant to be 0 or 1 based? Is this a bug? Frank -- Frank Hecke...
2014 May 23
2
ov_pcm_seek to sample zero of Theora/Vorbis file hangs
Hi all, I'm having a little trouble with a Vorbis decoder hanging (actually hard looping the CPU) when I call ov_pcm_seek(&vorbis_file, 0) on a multiplexed theora/vorbis file. It appears to be the vorbisfile library that has the problem. The call to ov_pcm_seek never returns. Seeking in non-multiplexed, including chained, files is OK. Seeking to other values, including sample 1, works OK. Has anyone else seen...
2001 Mar 29
3
ov_pcm_seek() is very slow...
I realise the it's hard to do a seek in a variable bitrate file but I didn't think it was this bad. It seems to vary a lot with the file but the total time to do an ov_open() and ov_pcm_seek() can add upp to a second or more. By this time my DirectX buffers have wrapped around and are looping. Can anybody think of a solution for this? I really need a faster response time for my in-game sounds. I realize the difficulties of doing the seek, I was looking for a lateral thinking sort of a...
2002 Aug 01
1
ov_raw_seek doesn't work ?
I found a problem with ov_raw_seek function in oggvorbis win32sdk 1.0. When i called this function it returned OV_EINVAL immediatelly. I solved the issue by replacing the ov_raw_seek by ov_pcm_seek, which worked perfectly, but i would like to use the raw variant due to performace reason . Is anybody aware of this strange behaviour ? Martin Cesky <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from...
2006 Aug 29
3
How can I seek in Ogg Vorbis file, but not using Vorbisfile library?
Hello, All. I am making an Ogg Vorbis decoder based on Tremor. The Vorbisfile library provides a high-level API which enables us to seek in the file, but it needs to declare a pointer to OggVorbis_File structure. Because I am supposed not to use file, so I can't use the ov_pcm_seek() or ov_raw_seek() functions to seek in the file. For decoding an Ogg Vorbis file, I first put it in a buffer, then use API provided by libogg and libvorbis to decode it, and put the PCM in ouput buffer. Now I have a problem, how to seek in the Ogg Vorbis file not using Vorbisfile library? Th...
2018 Nov 03
3
Decode ogg file while downloading: what are the good practices?
Thanks for your answer. But as I said, I don't have any problem seeking in a local file. Also, I have full control on the ogg file I play, since I encode it by myself. I first would like to know if the code I provided ( https://gist.github.com/mregnauld/3f7cdc43b02ec3bbd91641b9333ba072) is good practice when it comes to extracting and seeking in a file that is being downloaded. Thanks.
2018 Nov 05
2
Decode ogg file while downloading: what are the good practices?
...aven't managed yet to get any stacktrace, but I'll work on it (that's the problem using C/C++ code in an Android app...). Also, it's important to notice that I manage to make ov_read() crash, *even when the audio file is fully downloaded!* What I do to reproduce the bug is to call ov_pcm_seek() (without any reload of the file) many times in a row, very quickly (like 6-7 times per seconds, during a few seconds). So far, any idea how to fix that? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/vorbis-dev/attachm...
2004 May 10
1
re: Seek problems with vorbis_file
Hi, I have been having some problems with ov_pcm_seek in vorbis_file:- Any seeks to a sample within the first second of the stream (i.e. < 44100 samples) fail. Seeks to samples beyond this 44100 limit are fine. It appears to be associated with vorbis_file trying to read the preceding page (odd for the beginning of the file), attempting an ov_raw_...
2001 Nov 18
5
vorbisfile.o givng me problems
...sr/local/lib/lib -logg gcc -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -DUSE_MEMORY_H -o seeking_example seeking_example.o ../lib/.libs/libvorbisfile.a -lm -logg ../lib/.libs/libvorbis.a -lm -logg -lm -L/usr/local/lib/lib -logg ../lib/.libs/libvorbisfile.a(vorbisfile.o): In function `ov_pcm_seek_page': vorbisfile.o(.text+0x19fc): undefined reference to `ogg_stream_packetpeek' ../lib/.libs/libvorbisfile.a(vorbisfile.o): In function `ov_pcm_seek': vorbisfile.o(.text+0x1c32): undefined reference to `ogg_stream_packetpeek' collect2: ld returned 1 exit status make[1]: *** [vorbi...
2001 Nov 18
5
vorbisfile.o givng me problems
...sr/local/lib/lib -logg gcc -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -DUSE_MEMORY_H -o seeking_example seeking_example.o ../lib/.libs/libvorbisfile.a -lm -logg ../lib/.libs/libvorbis.a -lm -logg -lm -L/usr/local/lib/lib -logg ../lib/.libs/libvorbisfile.a(vorbisfile.o): In function `ov_pcm_seek_page': vorbisfile.o(.text+0x19fc): undefined reference to `ogg_stream_packetpeek' ../lib/.libs/libvorbisfile.a(vorbisfile.o): In function `ov_pcm_seek': vorbisfile.o(.text+0x1c32): undefined reference to `ogg_stream_packetpeek' collect2: ld returned 1 exit status make[1]: *** [vorbi...
2004 Jun 06
2
vorbisfile timestamp oddity
I'm seeing some inconsistency in returned timestamps using vorbisfile. I open a file, read some data (grabbing timestamps with ov_pcm_tell), then seek back with ov_pcm_seek(vf, 0) and read it again. The seek lands back on 0, but on the second read through, there's a gap in the timestamps: they jumps up by 2112 frames. This causes my vorbisfile code to insert silence to maintain sync (as if there was a hole), and one of my test cases fails: "reading data, re...
2002 Mar 21
1
Ogg Vorbis and DirectSound streaming
...for some time but at some point the application crashesh. The decoding is built on the vorbisfile sample passing a callback functions to ov_open_callbacks(). For the streaming technique to work the IStream interface must implement read/seek functions so they are build using only ov_read() and ov_pcm_seek() from the vorbis-sdk. First, I thought that the problem is that more than one thread is trying to use this functions and it forces the application to crash but I've added EnterCriticialSection() and LeaveCriticalSection() in the read and seek methods - the problem haven't disappeared(t...
2018 Nov 03
2
Decode ogg file while downloading: what are the good practices?
...ails: let's say I download an audio file whose length is 300 seconds. When, for example, 15 seconds of the file were downloaded, I called OggPlayer::open(). After that moment, even if the file was fully downloaded, I was able to seek in the file, but only between 0 and 15 seconds (whether I use ov_pcm_seek() or even ov_raw_seek()). So yes, that makes sence if libvorbisfile builds a seek table only when opening the file. That said, isn't there any function that allows to rebuild that seek table? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph....
2010 Sep 23
0
How can you synchronise audio with an already-playing stream?
...ntly when I seek and play the second track it is ~0.5s late (it starts playing immediately, but is offset by ~0.5s). All files are already stored in their compressed state in memory at the time the seek request is given. Each playback occurs on its own (OpenAL) source. I'm using ov_pcm_tell/ov_pcm_seek to seek the second file to the position of the first, and have implemented all of ov_callbacks to facilitate this. I suspect the problem is related to the time that passes between querying with _tell and the playing of the second source. For the benefit of future google searches, I also asked t...
2000 Jul 17
2
possible bug in _f0_fit_clear
...cmpl (%eax), %edx Fader:sc frame retaddr fd042014 ea303e52 free_look + 0000005a fd04202c ea30627b free_look + 0000009f fd042048 ea2f3196 vorbis_dsp_clear + 0000033e fd042074 ea2eed99 _decode_clear + 0000002d fd042084 ea2efc8f ov_raw_seek + 0000007f fd04209c ea2eff6d ov_pcm_seek + 00000221 fd042100 ea2f022e ov_time_seek + 0000013a fd042144 ea2ede85 MyPlugin::JumpTo(long) + 00000031 fd04215c 800473d7 #File CL-Amp text + 000473d7 fd042278 80048d24 #File CL-Amp text + 00048d24 I'll try and fingure out more details later, if no one else encounters this. Dave...
2004 May 11
0
re: Seek problems with vorbis_file
...r-vorbis-dev@xiph.org [mailto:owner-vorbis-dev@xiph.org] On Behalf Of Michael Smith Sent: 11 May 2004 01:04 To: vorbis-dev@xiph.org Subject: Re: [vorbis-dev] re: Seek problems with vorbis_file On Tuesday 11 May 2004 01:43, Paul Knight wrote: > Hi, > > I have been having some problems with ov_pcm_seek in vorbis_file:- > > Any seeks to a sample within the first second of the stream (i.e. < > 44100 samples) fail. Seeks to samples beyond this 44100 limit are fine. > > It appears to be associated with vorbis_file trying to read the > preceding page (odd for the beginning of the...
2005 Oct 09
1
ov_read_float vs. ov_read
Hello, Am I missing something? float** pcm_channels; int bitstream; int where = ov_pcm_tell(&vf); -> The Result is "0"; ov_read_float(&vf, &pcm_channels, 1, &bitstream); -> pcm_channels[0][0] is "0.000338580" ov_pcm_seek(&vf, 0); char* buffer = new char[2]; ov_read(&vf, buffer, sizeof(buffer), 0, 2, 1, &bitstream); short temp = *((short*)buffer); float test = temp / 32768.0f; -> test is "0.000335693" Why are the values different? Am I doing a wrong calculation? Or is "ov_read_float()&...
2006 May 11
1
Speed up?
...::endl; } if ( ov_open( oggaudio, &vf, NULL, 0 ) < 0 ){ std::cout << "ov_open problem" << std::endl; } int read = 0; float** ovdata; int current_section = 0; do{ read = ov_read_float(&vf , &ovdata, 64, &current_section); if ( read == 0 ){ ov_pcm_seek( &vf, 0 ); // ov_raw_seek() won't help read = ov_read_float(&vf, &ovdata, 64, &current_section); } } while (read != 0); return 0; } ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
2018 Nov 03
2
Decode ogg file while downloading: what are the good practices?
.../mregnauld/3f7cdc43b02ec3bbd91641b9333ba072 In that code, the oggFile is the file that I download (using Java code). So I start the download, and when there is some data available, I open the file, seek in the file, and extract audio samples from the desired position. And here is the problem: the ov_pcm_seek() function doesn't work properly most of the time, when I seek in a file that is currently downloading, even if I want to seek to a position that is already available (there is already data in that position). So, my question is: is it good practice or not? If not, how can I properly manage sam...
2018 Nov 05
2
Decode ogg file while downloading: what are the good practices?
Hello, After more tests, I discovered a new problem in my code ( https://gist.github.com/mregnauld/3f7cdc43b02ec3bbd91641b9333ba072) while seeking in an audio file that is being downloaded. When I seek in random positions (when I call OggPlayer::seek()), while I extract audio samples (when I call OggPlayer::extract() every 5ms, in my test - basically, I just play the audio file), sometimes, I