Home › Forums › Tao Classic Community › Tao Classic development › Audio issue
Tagged: C#, OpenAl, Sound, TaoClassic
This topic contains 3 replies, has 2 voices, and was last updated by MaNiAc 3 years, 9 months ago.
We are facing an issue for Audio. For some reason, this below:
` public static void PlaySound(string soundId, bool loop = false)
int channel = FindFreeChannel();
Audio audio = FindAudio(soundId);
if (channel != -1 && audio != null)
Al.alSourcei(channel, Al.AL_BUFFER, audio.bufferID);
Al.alSourcef(channel, Al.AL_PITCH, 1.0f);
Al.alSourcef(channel, Al.AL_GAIN, 1.0f);
Al.alSourcef(channel, Al.AL_LOOPING, 1);
Al.alSourcef(channel, Al.AL_LOOPING, 0);
audio.channel = channel;
does not give any error but does not play any sound either. It gives us a channel, 0, we can see the audio file as Audio but no sound is getting out.
Any ideas what is wrong?
Hi there! I’ll try to reproduce the problem and get back to you asap.
I’m not 100% sure that it’s the OpenAL binding or anything else…
actually got fixed.
wrap_oal.dll was missing and no complain so we did not see why at first but one of the students found it.
Good to hear that! Btw this is something that an installer should solve in the future – e.g. the developer using TC should not be forced to mess around with copying .DLLs to here and there.
You must be logged in to reply to this topic.