logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: PING: Queueing fails for buffers with streamed sources: msg#00108

lib.openal.devel

Subject: Re: PING: Queueing fails for buffers with streamed sources

On Monday 21 May 2007 03:28:57 pm you wrote:
> Also, what would happen if it wants 99,564
> bytes for the next frame and you only give it 98,765?

It could either generate an error, or empty the buffer and report 0 bytes.
Generally a frame is pretty small though.

> Still, after thinking about it, this might be the most straightforward
> mechanism.

It is kinda straight forward, and I could see apps making simple use of it.
But unless the spec for the extension explicitly indicates such behavior, an
app can't rely on AL_SIZE being anything meaningful beyond the stored buffer
size (and even that can be a generalized, given how the SI deinterleaves and
duplicates the audio data pointers). It could've been unexpectedly converted
or decompressed, too.

> Ah. That makes SAMPLE_OFFSET make sense at least, but it also implies
> that the data would need to be decompressed before you could handle it.
> You'd at least need to have some way of calculating the correct offset
> in the compressed stream to the corresponding uncompressed sample.

If it's decoded on the fly, you just keep track on the number of samples
decoded. Seeking to a byte offset would more than likely place the read
cursor at the nearest/next keyframe (to ensure error free decoding). Seeking
to a sample offset in a compressed stream would be a trick, though.

But still, I think I'm favoring on-load decode-to-pcm. Real-time decoding
means that the data would need to be decoded + converted + split, only to
filtered then re-interleaved and mixed into the device's buffer. What's fun
is that libvorbis gets the data as deinterleaved itself, so it'd have to be
docoded, interleaved, converted, deinterleaved, filtered, then reinterleaved
again. Not something you should be doing in mixer processing, IMO.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation