#All checks indicate music is playing, but I just hear silence

1 messages · Page 1 of 1 (latest)

lime cobalt
#

Details are in the above post. I am totally stumped on this one.

runic notch
#

There are a few things to check here:

  1. The voice, asset and emitter gains - all of these gain values play a part in calculating the final gain. The final gain is the product of all relevant gains, so if any of these is zero, your final gain will also be zero.

Check the result of audio_sound_get_gain() for both global.trackid and global.track and audio_emitter_get_gain() for global.music_emitter. If all of these are above zero then I would guess that the problem lies elsewhere

#
  1. Your playback function - as you are playing music on an emitter, it will be have positional effects applied to it, including falloff. If your music is intended to be background music (as opposed to actually coming from something inside your game), you would probably prefer to use audio_play_sound over audio_play_sound_on.
#
  1. Assuming that you do intend to use audio_play_sound_on, then you should check what the audio falloff model is, and where your listener is in relation to the emitter. It could be the case that the listener is outside of the audible range of the emitter, which would cause you not to hear the music that is playing somewhere in your room.
lime cobalt
#

I fixed it but don't know how to delete this post. THanks for the reply 🙂