Hello,
I have osgAudio working with local files, but when trying to play a remote audio (http://www.example.com/audio.wav), it gives an I/O error.
Is there a different way to load streaming audio with osgAudio? I am using osgAudio with openAL soft, on Windows 7 (Visual Studio 10).
Thank you in advance.
What behavior do you get when you click on your .wav link?
-Paul
> --
> You received this message because you are subscribed to the Google Groups
> "osgAudio-users" group.
> To post to this group, send email to osgaudi...@googlegroups.com.
> To unsubscribe from this group, send email to
> osgaudio-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/osgaudio-users?hl=en.
When I click on that, the browser opens an audio player and plays the .wav file.
-Paul
thank you for your reply. I'm sorry, the address I wrote was not a real
example, just an example of the kind of request I was using. Anyway, I have
tried with the wav file you wrote and I get the same error:
Error loading file:
http://www-mmsp.ece.mcgill.ca/documents/audioformats/wave/Samples/AFsp/M1F1-
Alaw-AFsp.wav: I/O error
Any ideas?
Best regards
-----Original Message-----
From: osgaudi...@googlegroups.com
[mailto:osgaudi...@googlegroups.com] On Behalf Of Paul Martz
Sent: martes, 21 de febrero de 2012 16:02
To: osgaudi...@googlegroups.com
Subject: Re: [osgaudio-users] Streaming audio
Try this one instead:
http://www-mmsp.ece.mcgill.ca/documents/audioformats/wave/Samples/AFsp/M1F1-
Alaw-AFsp.wav
When I click on that, the browser opens an audio player and plays the .wav
file.
-Paul
On 2/21/2012 6:56 AM, Paul Martz wrote:
> When I click on your .wav link, it immediately redirects me here:
> http://www.iana.org/domains/example/
> I guess I would have expected my web browser to play a .wav file instead.
>
> What behavior do you get when you click on your .wav link?
> -Paul
>
>
I'm guessing that OpenAL does not have built-in support for loading files over
the web. You'll need some other way to do that. I imagine that OSG's CURL plugin
might be able to load the file for you. If so, then you can pass the loaded file
to osgAudio. If you can get that to work, then you might want to consider a
submission to osgAudio to add that functionality.
-Paul
thank you for the answer and sorry for the delay (I've been busy with other
programming issues).
Yes, I thought that OpenAL could not have streaming features, but this
sounds strange for me, because I am using OpenAL for playing the audio of
the videos I load with the ffmpeg plugin and I am able to stream the audio
with the video, so, in fact, I get the audio streamed. I don't know why the
audio can be streamed if it is inside a video but not when it is separate.
Does it give you an idea about what can be done?
Cheers!
-----Original Message-----
From: osgaudi...@googlegroups.com
[mailto:osgaudi...@googlegroups.com] On Behalf Of Paul Martz
Sent: miércoles, 22 de febrero de 2012 17:06
To: osgaudi...@googlegroups.com
Subject: Re: [osgaudio-users] Streaming audio
A quick search of the source indicates your error message is coming from
osgAudio\src\openalpp\Sample.cpp line 75.
I'm guessing that OpenAL does not have built-in support for loading files
over the web. You'll need some other way to do that. I imagine that OSG's
CURL plugin might be able to load the file for you. If so, then you can pass
the loaded file to osgAudio. If you can get that to work, then you might
want to consider a submission to osgAudio to add that functionality.
-Paul
On 2/22/2012 7:30 AM, Paul Martz wrote:
> can you post example code? Do you have the CURL plugin built? Have you
> tried setting OSG_NOTIFY_LEVEL=DEBUG_FP to see what plugins are being
loaded?
> -Paul
>
>