Discussion:
[Audiere-users] Ogg and memory files
Tim
2005-02-16 01:44:13 UTC
Permalink
First of all, thanks for a good project. It
allowed me to easily make use of OGG in a time
critical application.

------

A question regarding playing OGG files.

I am trying to play a file from a memory buffer,
part of a larger file within memory. I am able
to play these when they are physically on disk,
just not as a memory object.

Here is the snippet all variables are members
of my class so stay in scope and I have checked
that the address/length of the memory buffer is
correct.

The same Ogg device I am using is fine, it works
when I use it to play streams from disk.


class datamembers
-----------------
FilePtr m_oggfp;
bool m_StartupThemeOggLoaded;
OutputStreamPtr m_StartupThemeOggStream;

code snippet
------------
m_oggfp = CreateMemoryFile(buffptr, bufflen);
m_StartupThemeOggStream =
OpenSound(*m_OGGPlayer, m_oggfp, false);

if (m_StartupThemeOggStream)
{
m_StartupThemeOggStream->setRepeat(true);
m_StartupThemeOggStream->play();
m_StartupThemeOggLoaded = true;
}

Hope you can help out.

Tim




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
m***@sechsta-sinn.de
2005-02-16 07:10:08 UTC
Permalink
Tim,

I remember having similar problems when using the Audiere file format
auto detection. When I explicitly told Audiere to open this file from
memory as an OGG, it worked for me.
Maybe you should give that a try.

Regards,
Matt


--
Matthias Gall, lead programmer at sechsta sinn
mailto:***@sechsta-sinn.de
http://www.sechsta-sinn.de
Post by Tim
First of all, thanks for a good project. It
allowed me to easily make use of OGG in a time
critical application.
------
A question regarding playing OGG files.
I am trying to play a file from a memory buffer,
part of a larger file within memory. I am able
to play these when they are physically on disk,
just not as a memory object.
Here is the snippet all variables are members
of my class so stay in scope and I have checked
that the address/length of the memory buffer is
correct.
The same Ogg device I am using is fine, it works
when I use it to play streams from disk.
class datamembers
-----------------
FilePtr m_oggfp;
bool m_StartupThemeOggLoaded;
OutputStreamPtr m_StartupThemeOggStream;
code snippet
------------
m_oggfp = CreateMemoryFile(buffptr, bufflen);
m_StartupThemeOggStream =
OpenSound(*m_OGGPlayer, m_oggfp, false);
if (m_StartupThemeOggStream)
{
m_StartupThemeOggStream->setRepeat(true);
m_StartupThemeOggStream->play();
m_StartupThemeOggLoaded = true;
}
Hope you can help out.
Tim
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Audiere-users mailing list
https://lists.sourceforge.net/lists/listinfo/audiere-users
Tim
2005-02-16 11:59:07 UTC
Permalink
Matt,

Yes I did some more searching of old email and finally ran
across that item. You are right of course, as soon as I
identified it as FF_OGG things worked.

As an aside, is there going to be another release, or is
the baseline stable/extensable enough now?

Thanks
Post by m***@sechsta-sinn.de
Tim,
I remember having similar problems when using the Audiere file
format
auto detection. When I explicitly told Audiere to open this file from
memory as an OGG, it worked for me.
Maybe you should give that a try.
Regards,
Matt
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
Chad Austin
2005-02-27 05:57:06 UTC
Permalink
Post by Tim
Matt,
Yes I did some more searching of old email and finally ran
across that item. You are right of course, as soon as I
identified it as FF_OGG things worked.
As an aside, is there going to be another release, or is
the baseline stable/extensable enough now?
Thanks
It's odd that you have to specify the extension to make it work... Audiere
really needs unit tests. >_> (I hear Ben cheering in the background.)

When I get the build system rewritten in SCons, it should be ready for a
release. The version in CVS is basically what will be released, unless bugs are
found until then. (The fundamental problem here is that I don't have VC6 on my
computer anymore. Thus, I can't use the old method of making a release. So
instead, I'm just making an SCons build to replace all of the others.)

Chad

Loading...