At this point we should have memory allocated for the inlined sound. We just need
At this point we should have memory allocated for the inlined sound. We just need
to initialize it like a normal sound now.
to initialize it like a normal sound now.
*/
*/
dataSourceFlags|=MA_SOUND_FLAG_ASYNC;/* For inlined sounds we don't want to be sitting around waiting for stuff to load so force an async load. */
soundFlags|=MA_SOUND_FLAG_ASYNC;/* For inlined sounds we don't want to be sitting around waiting for stuff to load so force an async load. */
dataSourceFlags|=MA_SOUND_FLAG_NO_DEFAULT_ATTACHMENT;/* We want specific control over where the sound is attached in the graph. We'll attach it manually just before playing the sound. */
soundFlags|=MA_SOUND_FLAG_NO_DEFAULT_ATTACHMENT;/* We want specific control over where the sound is attached in the graph. We'll attach it manually just before playing the sound. */
soundFlags|=MA_SOUND_FLAG_NO_PITCH;/* Pitching isn't usable with inlined sounds, so disable it to save on speed. */
soundFlags|=MA_SOUND_FLAG_NO_SPATIALIZATION;/* Not currently doing spatialization with inlined sounds, but this might actually change later. For now disable spatialization. Will be removed if we ever add support for spatialization here. */