<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 17 December 2013 09:53, <span dir="ltr"><<a href="mailto:dave@661.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=dave@661.org&cc=&bcc=&su=&body=','_blank');return false;">dave@661.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, 17 Dec 2013, Conrad Parker wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 17 December 2013 09:38, <<a href="mailto:dave@661.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=dave@661.org&cc=&bcc=&su=&body=','_blank');return false;">dave@661.org</a>> wrote:<br>
On Tue, 17 Dec 2013, Conrad Parker wrote:<br>
<br>
I like libsndfile, but it's not designed to support<br>
Ogg-in-AIFF. If your<br>
game only needs to support these specific filetypes<br>
that you generate, one<br>
of which isn't supported by libsndfile, then perhaps<br>
there's no need to use<br>
libsndfile here.<br>
<br>
<br>
The Ogg files aren't in an AIFF, but an IFF container called Blorb.<br>
It looks like I have to use libsndfile anyhow. My code for loading<br>
AIFFs only works for 8-bit samples and I can't figure out how to get<br>
things to work for 16-bit AIFFs or how to adjust their volumes<br>
properly.<br>
<br>
<br>
Ah ok, yes libsndfile is great for loading AIFF but it probably doesn't yet<br>
have support for Blorb ;)<br>
</blockquote>
<br></div></div>
I already have a library for parsing Blorb files. There is no need for libsndfile to support it. A Blorb file contains AIFFs, MODs, and OGGs as chunks. Generally what the Blorb library does is check the index chunk for the sound clip desired and return a filepointer to the beginning of that clip. It seems to me that it would make no difference to libsndfile if the file pointer (well, handle) points to a naked file or a portion of a container file (a Blorb file). This doesn't bother libsndfile if I'm loading an AIFF the same way.</blockquote>
<div><br></div><div>right. Are you using libsndfile's virtual io functions for that?</div><div><br></div><div>Conrad. </div></div></div></div>