0
0

Alright, I get this error when I’m trying to play one of the sound effects in my game.

I looked at the Documentation and still can’t figure out how to correct the problem…

This is how I have things set up:

First, I’ve created an array of sound pointers for the amount of sound effects in the game… for now lets say it’s an array of 20.

I preload my sound effects when the game starts in the init function to the game into each section of the array.

So, lets say Menu_Sound1 goes into SFX[0], Menu_Sound2 into SFX[1], Hurt_Sound into SFX[11] and so on.

My menu sounds work fine, but when the game starts and the music begins to play my sound effects seems to throw the FMOD_ERR_OUTPUT_ALLOCATED error. The music is streaming… but I don’t think thats the problem. (Coming from the guy asking for help =p)

I don’t think it’s an issue with the channel already being used because I’m using FMOD_CHANNEL_FREE with the System’s playSound function and I tried using FMOD_CHANNEL_REUSE but there is no change.

Any ideas?

Thanks ahead of time.

  • You must to post comments
0
0

I think you have mixed up your fmod versions. Please uninstall / delete your sdk and reinstall or simply make sure you are matching the header with the lib.

The playsound command does not return FMOD_ERR_OUTPUT_ALLOCATED.

You are probably seeing one of the errors near it, such as

[code:2ydpw78t]
FMOD_ERR_NOTREADY, /* Operation could not be performed because specified sound is not ready. /
FMOD_ERR_OUTPUT_ALLOCATED, /
Error initializing output device, but more specifically, the output device is already in use and cannot be reused. /
FMOD_ERR_OUTPUT_CREATEBUFFER, /
Error creating hardware sound buffer. /
FMOD_ERR_OUTPUT_DRIVERCALL, /
A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. */
[/code:2ydpw78t]

If you are getting one of these then it is probably either the format of the sound you are trying to play in 3d, or the dsound driver is simply misbehaving and you should use FMOD_SOFTWARE when you create your sounds.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.