[vorbis-dev] Seeking ogg-vorbis

Jonathan_Huang at compal.com Jonathan_Huang at compal.com
Tue Jul 22 17:48:58 PDT 2003



This is my 1st posting to "our" group.  Hope it works.

Hi Rodrigo:

        There are seek functions under the api and they held reasonable
performance. You should also create your project under your tool and build
lib there. The example file is simple and you should spnd time to learn api
from them. After that, you should be able to code your own. Just relax and
try. You should be able to do it. Then you learn. You can ask detailed
questions on part you don't understand.

john

-----Original Message-----
From: Rodrigo Gómez [mailto:rgomez at msa.com.mx] 
Sent: Wednesday, July 23, 2003 7:31 AM
To: vorbis-dev at xiph.org
Subject: [vorbis-dev] Seeking ogg-vorbis

Hi there.

I have been hearing to ogg vorbis for maybe 2 years and I can only say: it
is fantastic!

Right now, I'm working in a project that uses ogg vorbis as the format for
recording. I have now a working recording engine (I have recorded up to 8
channels at the same time and my computer uses only about 30% of the
processor, wich is great in this project), and I'm starting with the playing
engine.

I have seen the examples, but they are somewhat "simplistic" (no mean to
offense anybody!). I need to solve the following scheme:
    - The files I'm playing represent up to 24 hours of continuous
recording.
    - I need to decode the stream to a PCM memory buffer, that will be used
later by existing components to do the actual playing (this allows me to
display fancy graphics and so on).
    - I need to be able to seek to any position (seconds) in the file, and
it needs to be quick, and, most of all, needs to use low resources (I mean,
I can't decode the entire day into memory, for obvious reasons)
    - The files are recorded using the same parameters for all the file. I
mean, each file can have it's own sample rate, number of channels, and so
on, but it will be constant for any given file.
    - I just need to play one file at the time.

BTW: I'm using Borland C++Builder 6 to do this job, under Windows. I had
some trouble using the libs provided with the SDK, and I had to do an implib
from the DLLs. This is fine. The problem is: The libs are generated using a
calling convention that I don't use (and I can't use, because I have another
DLLs using different calling convention). Any idea of how to solve it? Is it
possible to recompile the SDK using Borland's tools? I'm sorry if this is a
"stupid" question, as I'm remembering now that I didn't checked the implib
help to see if it is something that can be changed here.

If someone can point me on the right direction to do this job it will be
terrific. I just need some real-world examples to see. A pseudocode will do.

Thanks, in advance.
And Thanks, for this great format.

Rodrigo Gómez

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to
'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list