Added SDL audio path
This commit is contained in:
parent
ac49ca81ca
commit
97e987a9d9
@ -381,8 +381,6 @@ class SDLAudioSink : public osg::AudioSink
|
|||||||
|
|
||||||
void SDLAudioSink::soundReadCallback(void * const user_data, Uint8 * const data, const int datalen)
|
void SDLAudioSink::soundReadCallback(void * const user_data, Uint8 * const data, const int datalen)
|
||||||
{
|
{
|
||||||
osg::notify(osg::NOTICE)<<"SDLAudioSink::soundReadCallback"<<std::endl;
|
|
||||||
|
|
||||||
SDLAudioSink * sink = reinterpret_cast<SDLAudioSink*>(user_data);
|
SDLAudioSink * sink = reinterpret_cast<SDLAudioSink*>(user_data);
|
||||||
osg::ref_ptr<osg::AudioStream> as = sink->_audioStream.get();
|
osg::ref_ptr<osg::AudioStream> as = sink->_audioStream.get();
|
||||||
if (as.valid())
|
if (as.valid())
|
||||||
|
Loading…
Reference in New Issue
Block a user