Re: [osg-users] osgAudio on Mac OS X
On 3/9/2011 4:16 AM, Alessandro Terenzi wrote: If this can help...when I try the 'example_osgaudiolow_playOgg' app I have all the problems already described so far, but if I try a very simple example based only on OpenAL+libogg (no OSG, no osgAudio) everything works fine, maybe the issue is really related to osgAudio? That indicates the problem is in osgAudio somewhere, but it's interesting that it doesn't show up on other platforms. Please let me know how I can help testing osgAudio on Mac OS X. If you could post a patch to the Google Code issues page, that would be very helpful. -Paul ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
If this can help...when I try the 'example_osgaudiolow_playOgg' app I have all the problems already described so far, but if I try a very simple example based only on OpenAL+libogg (no OSG, no osgAudio) everything works fine, maybe the issue is really related to osgAudio? Please let me know how I can help testing osgAudio on Mac OS X. Cheers. Alessandro On Wed, Mar 9, 2011 at 11:49 AM, Alessandro Terenzi wrote: > I've started from scratch but still having problems with osgAudio on Mac OS > X when using OpenAL, (I tried FMOD and no problems at all). > > Actually I think that the problem happens only when trying to play ogg > files (or maybe when playing streams in general, I'm not sure) and the > problem may be related to threads because of the error messages I'm getting: > > *StreamUpdater::cancelCleanup: Should probably not delete this* > *Error: Thread 0x14b0f010 still running in destructor* > * > * > *Bus error* (or sometimes* Segmentation fault*) > > finally the app sometimes crashes. Do you have any idea or suggestion? > Thanks. > Alessandro > > > > > On Tue, Mar 8, 2011 at 10:43 AM, Alessandro Terenzi > wrote: > >> Just for your information, I was keeping trying with OpenAL bundled with >> OS X and other osgAudio examples, I tried "example_osgaudiolow_playOgg" and, >> while everything goes fine during the app lifetime, when the app quits, I >> get this error: >> >> StreamUpdater::cancelCleanup: Should probably not delete this >> Error: Thread 0x837300 still running in destructor >> Segmentation fault >> >> and the app crashes (I can send the dump if you want). >> >> Regards. >> Alessandro >> >> >> On Tue, Mar 8, 2011 at 9:59 AM, Alessandro Terenzi >> wrote: >> >>> Yes, I tried the OpenAL framework that comes with OS X and it works, but >>> I'm just getting an error the first time I press the 'm' key in the >>> 'example_osgaudio': >>> >>> *alError: (1718449215) >>> Builds/osgAudio/osgAudio_02_00_00/src/openalpp/Source.cpp at Line: 115: No >>> message associated with error code.* >>> *Error: pthread_cond_destroy(,) returned error status, status = 16* >>> >>> but actually the sound keeps playing correctly and the app does not >>> crash. So, not considering the error that is printed in the console, >>> everything seems to work fine using the framework that comes with OS X. >>> >>> I'll keep trying OpenAL and also have a look at fmod for further >>> development. >>> Thanks everybody for the help. >>> >>> Cheers. >>> Alessandro >>> >>> On Tue, Mar 8, 2011 at 9:07 AM, Stephan Huber >>> wrote: >>> Am 07.03.11 11:46, schrieb Alessandro Terenzi: > verything works fine on Windows, I'm having this problems only on Mac OS X > and, FYI, I've built all the dependencies for osgAudio, including > OpenAL-soft and freeAlut. The OSG version I'm using is 2.9.6. OpenAL is bundled with OS X as a framework. Have you tried this version of OpenAL? Cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >>> >> > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
I've started from scratch but still having problems with osgAudio on Mac OS X when using OpenAL, (I tried FMOD and no problems at all). Actually I think that the problem happens only when trying to play ogg files (or maybe when playing streams in general, I'm not sure) and the problem may be related to threads because of the error messages I'm getting: *StreamUpdater::cancelCleanup: Should probably not delete this* *Error: Thread 0x14b0f010 still running in destructor* * * *Bus error* (or sometimes* Segmentation fault*) finally the app sometimes crashes. Do you have any idea or suggestion? Thanks. Alessandro On Tue, Mar 8, 2011 at 10:43 AM, Alessandro Terenzi wrote: > Just for your information, I was keeping trying with OpenAL bundled with OS > X and other osgAudio examples, I tried "example_osgaudiolow_playOgg" and, > while everything goes fine during the app lifetime, when the app quits, I > get this error: > > StreamUpdater::cancelCleanup: Should probably not delete this > Error: Thread 0x837300 still running in destructor > Segmentation fault > > and the app crashes (I can send the dump if you want). > > Regards. > Alessandro > > > On Tue, Mar 8, 2011 at 9:59 AM, Alessandro Terenzi wrote: > >> Yes, I tried the OpenAL framework that comes with OS X and it works, but >> I'm just getting an error the first time I press the 'm' key in the >> 'example_osgaudio': >> >> *alError: (1718449215) >> Builds/osgAudio/osgAudio_02_00_00/src/openalpp/Source.cpp at Line: 115: No >> message associated with error code.* >> *Error: pthread_cond_destroy(,) returned error status, status = 16* >> >> but actually the sound keeps playing correctly and the app does not crash. >> So, not considering the error that is printed in the console, everything >> seems to work fine using the framework that comes with OS X. >> >> I'll keep trying OpenAL and also have a look at fmod for further >> development. >> Thanks everybody for the help. >> >> Cheers. >> Alessandro >> >> On Tue, Mar 8, 2011 at 9:07 AM, Stephan Huber wrote: >> >>> Am 07.03.11 11:46, schrieb Alessandro Terenzi: >>> > verything works fine on Windows, I'm having this problems only on Mac >>> OS X >>> > and, FYI, I've built all the dependencies for osgAudio, including >>> > OpenAL-soft and freeAlut. The OSG version I'm using is 2.9.6. >>> >>> OpenAL is bundled with OS X as a framework. Have you tried this version >>> of OpenAL? >>> >>> Cheers, >>> Stephan >>> ___ >>> osg-users mailing list >>> osg-users@lists.openscenegraph.org >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >> >> > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
Just for your information, I was keeping trying with OpenAL bundled with OS X and other osgAudio examples, I tried "example_osgaudiolow_playOgg" and, while everything goes fine during the app lifetime, when the app quits, I get this error: StreamUpdater::cancelCleanup: Should probably not delete this Error: Thread 0x837300 still running in destructor Segmentation fault and the app crashes (I can send the dump if you want). Regards. Alessandro On Tue, Mar 8, 2011 at 9:59 AM, Alessandro Terenzi wrote: > Yes, I tried the OpenAL framework that comes with OS X and it works, but > I'm just getting an error the first time I press the 'm' key in the > 'example_osgaudio': > > *alError: (1718449215) > Builds/osgAudio/osgAudio_02_00_00/src/openalpp/Source.cpp at Line: 115: No > message associated with error code.* > *Error: pthread_cond_destroy(,) returned error status, status = 16* > > but actually the sound keeps playing correctly and the app does not crash. > So, not considering the error that is printed in the console, everything > seems to work fine using the framework that comes with OS X. > > I'll keep trying OpenAL and also have a look at fmod for further > development. > Thanks everybody for the help. > > Cheers. > Alessandro > > On Tue, Mar 8, 2011 at 9:07 AM, Stephan Huber wrote: > >> Am 07.03.11 11:46, schrieb Alessandro Terenzi: >> > verything works fine on Windows, I'm having this problems only on Mac OS >> X >> > and, FYI, I've built all the dependencies for osgAudio, including >> > OpenAL-soft and freeAlut. The OSG version I'm using is 2.9.6. >> >> OpenAL is bundled with OS X as a framework. Have you tried this version >> of OpenAL? >> >> Cheers, >> Stephan >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
Yes, I tried the OpenAL framework that comes with OS X and it works, but I'm just getting an error the first time I press the 'm' key in the 'example_osgaudio': *alError: (1718449215) Builds/osgAudio/osgAudio_02_00_00/src/openalpp/Source.cpp at Line: 115: No message associated with error code.* *Error: pthread_cond_destroy(,) returned error status, status = 16* but actually the sound keeps playing correctly and the app does not crash. So, not considering the error that is printed in the console, everything seems to work fine using the framework that comes with OS X. I'll keep trying OpenAL and also have a look at fmod for further development. Thanks everybody for the help. Cheers. Alessandro On Tue, Mar 8, 2011 at 9:07 AM, Stephan Huber wrote: > Am 07.03.11 11:46, schrieb Alessandro Terenzi: > > verything works fine on Windows, I'm having this problems only on Mac OS > X > > and, FYI, I've built all the dependencies for osgAudio, including > > OpenAL-soft and freeAlut. The OSG version I'm using is 2.9.6. > > OpenAL is bundled with OS X as a framework. Have you tried this version > of OpenAL? > > Cheers, > Stephan > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
Am 07.03.11 11:46, schrieb Alessandro Terenzi: > verything works fine on Windows, I'm having this problems only on Mac OS X > and, FYI, I've built all the dependencies for osgAudio, including > OpenAL-soft and freeAlut. The OSG version I'm using is 2.9.6. OpenAL is bundled with OS X as a framework. Have you tried this version of OpenAL? Cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
On 3/7/2011 11:25 AM, Alessandro Terenzi wrote: yes fmod would be a good choice (the best maybe), but I need to consider cheaper solutions first ;) FMOD is free to download for dev and testing and will help you isolate the problem. If FMOD works and OpenAL doesn't, that eliminates OSG and osgAudio as the problem and pretty much places the blame squarely on OpenAL. This is a standard debugging technique. -Paul ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
Thanks Doug, yes fmod would be a good choice (the best maybe), but I need to consider cheaper solutions first ;) Cheers. Alessandro On Mon, Mar 7, 2011 at 7:20 PM, Doug McCorkle wrote: > > On Mar 7, 2011, at 12:14 PM, Alessandro Terenzi wrote: > > > Hi Chris, > > actually I've tried the "openal-info" example and noticed that no output > device is found. So I went back to the OpenAL's project generation (cmake) > and noticed that the only backends that are used/found are: WaveFile, and > Null. > > > > I think that I'm missing an important backend, so I looked for a way to > use CoreAudio, and found an old version of openal-soft that supports > CoreAudio, but I didn't manage to use it with osgAudio (because whenever I > try to load an audio file, an exception is raised because of the missing > audio context). Then I also tried to modify the latest OpenAL (soft) in > order to use CoreAudio in the same way the older version did, but there are > too much differences, so I didn't succeed. > > > > Is any other backend I am missing? > I would recommend FMOD. > > http://fmod.org/ > > Doug > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
On Mar 7, 2011, at 12:14 PM, Alessandro Terenzi wrote: > Hi Chris, > actually I've tried the "openal-info" example and noticed that no output > device is found. So I went back to the OpenAL's project generation (cmake) > and noticed that the only backends that are used/found are: WaveFile, and > Null. > > I think that I'm missing an important backend, so I looked for a way to use > CoreAudio, and found an old version of openal-soft that supports CoreAudio, > but I didn't manage to use it with osgAudio (because whenever I try to load > an audio file, an exception is raised because of the missing audio context). > Then I also tried to modify the latest OpenAL (soft) in order to use > CoreAudio in the same way the older version did, but there are too much > differences, so I didn't succeed. > > Is any other backend I am missing? I would recommend FMOD. http://fmod.org/ Doug ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
Thanks Doug, I'll also have a look at the osgAudio mail list. Cheers. Alessandro On Mon, Mar 7, 2011 at 7:12 PM, Doug McCorkle wrote: > Hello Alessandro, > > These questions seem to be specific to osgAudio so I will point out that we > have an osgAudio mail list: http://groups.google.com/group/osgaudio-users. > You may also try posting your question there. > > In regards to some of your comments, we use osgAudio on Mac OS 10.6 but we > use the FMOD backend. Also, I have never tried to play an ogg file so I am > not sure what to expect on that front. I have also never tried OpenAL-soft. > I have only used OpenAL on windows and linux. So I think there are a number > of things here that you are doing than what we have tested. I would try some > of the other audio library backends and see what happens. I have had good > success with them across Linux, Windows, and Mac. > > We are also using 2.8.3 for our development. There may be others on the > osgAudio list that are developing with the 2.9.x series of libraries that > may be able to provide helpful feedback too. > > Doug > > On Mar 7, 2011, at 4:46 AM, Alessandro Terenzi wrote: > > > Hello, > > I'm trying osgAudio 2.2.0 on Mac OS X 10.5 but I'm getting no sound and > also some runtime errors/exceptions. If I try example_osgaudio then I cannot > hear any sound and if I try to press the 'm' key (that should start the > playback of a .ogg file) the app exits with this message: > > > > Source::setSound(Stream *stream) resetting stream not supported, create > new source > > Caught: Source::setSound(Stream *stream) resetting stream not supported, > create new source > > > > If I try example_osgaudiolow_playOgg, then I cannot hear any sound and > whatever keys I press nothing happens, but when I press 'q' (that is > supposed to quit the app) I get the following error: > > > > Error: pthread_cond_destroy(,) returned error status, status = 16 > > alError: (40961) > Builds/osgAudio/osgAudio_02_00_00/src/openalpp/StreamUpdater.cpp at Line: > 320: Invalid Name parameter passed to AL call. > > > > Everything works fine on Windows, I'm having this problems only on Mac OS > X and, FYI, I've built all the dependencies for osgAudio, including > OpenAL-soft and freeAlut. The OSG version I'm using is 2.9.6. > > > > Any idea/suggestion? > > Cheers. > > Alessandro > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
Hi Chris, actually I've tried the "openal-info" example and noticed that no output device is found. So I went back to the OpenAL's project generation (cmake) and noticed that the only backends that are used/found are: WaveFile, and Null. I think that I'm missing an important backend, so I looked for a way to use CoreAudio, and found an old version of openal-soft that supports CoreAudio, but I didn't manage to use it with osgAudio (because whenever I try to load an audio file, an exception is raised because of the missing audio context). Then I also tried to modify the latest OpenAL (soft) in order to use CoreAudio in the same way the older version did, but there are too much differences, so I didn't succeed. Is any other backend I am missing? Or, there is an easier way to add CoreAudio? Thanks for your help. Alessandro On Mon, Mar 7, 2011 at 6:49 PM, Chris 'Xenon' Hanson wrote: > On 3/7/2011 3:46 AM, Alessandro Terenzi wrote: > > Hello, > > I'm trying osgAudio 2.2.0 on Mac OS X 10.5 but I'm getting no sound and > also some runtime > > errors/exceptions. If I try example_osgaudio then I cannot hear any sound > and if I try to > > press the 'm' key (that should start the playback of a .ogg file) the app > exits with this > > message: > > *Source::setSound(Stream *stream) resetting stream not supported, create > new source* > > *Caught: Source::setSound(Stream *stream) resetting stream not supported, > create new source* > > If I try example_osgaudiolow_playOgg, then I cannot hear any sound and > whatever keys I > > press nothing happens, but when I press 'q' (that is supposed to quit the > app) I get the > > following error: > > Do _any_ of the osgAudioLow examples work? > > The "low" level examples just test openAL++/openAL, and have zero to do > with OSG, so > they're a good place to start. If that's not working, do you have other > openAL tools you > could test with? Perhaps your openAL is not working itself. > > > Any idea/suggestion? > > Cheers. > > Alessandro > > -- > Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com > http://www.alphapixel.com/ > Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. > Contracting. >"There is no Truth. There is only Perception. To Perceive is to Exist." > - Xen > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
Hello Alessandro, These questions seem to be specific to osgAudio so I will point out that we have an osgAudio mail list: http://groups.google.com/group/osgaudio-users . You may also try posting your question there. In regards to some of your comments, we use osgAudio on Mac OS 10.6 but we use the FMOD backend. Also, I have never tried to play an ogg file so I am not sure what to expect on that front. I have also never tried OpenAL-soft. I have only used OpenAL on windows and linux. So I think there are a number of things here that you are doing than what we have tested. I would try some of the other audio library backends and see what happens. I have had good success with them across Linux, Windows, and Mac. We are also using 2.8.3 for our development. There may be others on the osgAudio list that are developing with the 2.9.x series of libraries that may be able to provide helpful feedback too. Doug On Mar 7, 2011, at 4:46 AM, Alessandro Terenzi wrote: > Hello, > I'm trying osgAudio 2.2.0 on Mac OS X 10.5 but I'm getting no sound and also > some runtime errors/exceptions. If I try example_osgaudio then I cannot hear > any sound and if I try to press the 'm' key (that should start the playback > of a .ogg file) the app exits with this message: > > Source::setSound(Stream *stream) resetting stream not supported, create new > source > Caught: Source::setSound(Stream *stream) resetting stream not supported, > create new source > > If I try example_osgaudiolow_playOgg, then I cannot hear any sound and > whatever keys I press nothing happens, but when I press 'q' (that is supposed > to quit the app) I get the following error: > > Error: pthread_cond_destroy(,) returned error status, status = 16 > alError: (40961) > Builds/osgAudio/osgAudio_02_00_00/src/openalpp/StreamUpdater.cpp at Line: > 320: Invalid Name parameter passed to AL call. > > Everything works fine on Windows, I'm having this problems only on Mac OS X > and, FYI, I've built all the dependencies for osgAudio, including OpenAL-soft > and freeAlut. The OSG version I'm using is 2.9.6. > > Any idea/suggestion? > Cheers. > Alessandro ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAudio on Mac OS X
On 3/7/2011 3:46 AM, Alessandro Terenzi wrote: > Hello, > I'm trying osgAudio 2.2.0 on Mac OS X 10.5 but I'm getting no sound and also > some runtime > errors/exceptions. If I try example_osgaudio then I cannot hear any sound and > if I try to > press the 'm' key (that should start the playback of a .ogg file) the app > exits with this > message: > *Source::setSound(Stream *stream) resetting stream not supported, create new > source* > *Caught: Source::setSound(Stream *stream) resetting stream not supported, > create new source* > If I try example_osgaudiolow_playOgg, then I cannot hear any sound and > whatever keys I > press nothing happens, but when I press 'q' (that is supposed to quit the > app) I get the > following error: Do _any_ of the osgAudioLow examples work? The "low" level examples just test openAL++/openAL, and have zero to do with OSG, so they're a good place to start. If that's not working, do you have other openAL tools you could test with? Perhaps your openAL is not working itself. > Any idea/suggestion? > Cheers. > Alessandro -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgAudio on Mac OS X
Hello, I'm trying osgAudio 2.2.0 on Mac OS X 10.5 but I'm getting no sound and also some runtime errors/exceptions. If I try example_osgaudio then I cannot hear any sound and if I try to press the 'm' key (that should start the playback of a .ogg file) the app exits with this message: *Source::setSound(Stream *stream) resetting stream not supported, create new source* *Caught: Source::setSound(Stream *stream) resetting stream not supported, create new source* If I try example_osgaudiolow_playOgg, then I cannot hear any sound and whatever keys I press nothing happens, but when I press 'q' (that is supposed to quit the app) I get the following error: *Error: pthread_cond_destroy(,) returned error status, status = 16* *alError: (40961) Builds/osgAudio/osgAudio_02_00_00/src/openalpp/StreamUpdater.cpp at Line: 320: Invalid Name parameter passed to AL call.* Everything works fine on Windows, I'm having this problems only on Mac OS X and, FYI, I've built all the dependencies for osgAudio, including OpenAL-soft and freeAlut. The OSG version I'm using is 2.9.6. Any idea/suggestion? Cheers. Alessandro ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org