Advertisement

Audiere: Stream playing but no sound?

Started by August 29, 2004 03:25 PM
0 comments, last by Apoc333 20 years, 2 months ago
Hi, I just started to implement music/sound into my little demo. Sound works just fine (used the d8 tutorial from this side ;) ). The background music should be ogg, so I looked arround for an api supporting ogg and found audiere usefull. But the problem I have with audiere is that I hear no sound. stream->isPlaying() reports true, so the stream really seems to play... but where goes the sound? Regards, Apoc333

...

AudioDevicePtr device(OpenDevice());

OutputStreamPtr stream(OpenSound(device, "music.ogg", true)); 

stream->setRepeat(true);
stream->setVolume(1.0f);
stream->play();

...

--------------Regards, Apoc333Visit my current project: https://sourceforge.net/projects/connect-four-3d/
Well, after all I fixed the Problem... I created the sream and device in my soundinit() function ... no good idea. Creating them global works much better :D
--------------Regards, Apoc333Visit my current project: https://sourceforge.net/projects/connect-four-3d/

This topic is closed to new replies.

Advertisement