I have an application that’s using FMOD.OUTPUTTYPE.NOSOUND and was wondering if it would be possible to add a corresponding "no speaker" value to the SPEAKERTYPE enum? There are several spots where I’m checking the speaker count for UI feature enabling, and having zero speakers returned would make things more consistent.
- kirkus asked 8 years ago
I dont understand the output mode has nothing to do with the fmod_speaker enum list. There is still a speaker mode by default and that is enabled with setSpeakerMode (default = stereo). Unless you’re talking about FMOD_SPEAKERMODE_RAW then you just use integers cast to the speaker type .
I want the UI portion of the application, when querying the system for the number of speakers, to be zero (0); when the audio layer initializes using NOSOUND, I do not want the UI to see ANY speakers. Several of our routines, including speaker calibration, enable UI features based on the number of speakers detected in the system.
Assuming that you have some wrapper or interface to query your audio engine, you can do that check yourself. You can query System::getOutput() and return 0 if it’s NOSOUND. Alternatively, you can set a flag internally when you initialize FMOD and check that.
- Adiss answered 8 years ago
Yes, I understand I can check this myself. That’s why I tagged it as a feature request, as it seems to make sense to me that if I have a built-in "nosound" output, I would also have a "nospeaker" option, since a null sound driver would likely have no speaker configuration.
NOSOUND is provided as a way to let users run their application as is, without any sound output. Everything else acts as normal. There may be circumstances where users are setting the speaker mix or doing something per speaker which is completely valid despite the fact there is no sound. In this case it wouldn’t be appropriate for us to return no speakers.
Hope this clears things up.
- Guest answered 8 years ago
Please login first to submit.