#8 channel ASIO output

1 messages · Page 1 of 1 (latest)

frigid tulip
#

I was already playing NotchLC video with AVProVideo plugin
https://assetstore.unity.com/packages/slug/184294
And I assumed it would be fine if I just set project audio settings to 7.1, have 8 channel audio within video, and output to system default but apparently not
(clarification: this seem to work as output but they want ASIO)

#

After some more digging - I landed on this: https://assetstore.unity.com/packages/audio/sound-fx/147091
Now I still have to play the video and these don't seem to behave well together. I had to completely take audio out of the video, and I'll play the audio separately through the AudioManager included in this plugin

#

My limited understanding is this will just take care of ASIO output for the system when I install ASIO4ALL drivers and set that as device right?

#

This code does seem to have correct log outputs but I'm not hearing anything
And I assume that is only because I just don't have the proper speaker etc setup here right?
(sorry again for noob question, just wanted to get a sense of whether I'm understanding these correctly before sending a build for test)

private void PlayChapterAudio(SoundStream _soundStream, int chapterIndex)
{
    int SoundIndex = chapterIndex + 1;

    _soundStream = AudioManager.Asio.Play(
        soundID: SoundIndex,
        // this should force (?) 8 channel output
        outChannels: new uint[] { 0, 1, 2, 3, 4, 5, 6, 7 },
        volume: Volume,
        fadeSec: FadeSeconds,
        looping: true);

    var totalTime = _soundStream.GetTotalTime();

    Debug.Log("SoundStream.Play: " + chapterIndex + "  " + _soundStream);
    Debug.Log("SoundStream.GetTotalTime: " + totalTime);
}

private void StopChapterAudio(SoundStream _soundStream, int chapterIndex)
{
    // Debug.Log("SoundStream.Stop: " + chapterIndex + "  " + _soundStream);
    _soundStream?.Stop(fadeSec: FadeSeconds);
}
lethal mason
#

1] you don't need asio for multichannel output in general
provided your system default (which unity will use) has 8 channels all clips channels will be played on it and unity maps channels linearly to output channels
1.1]

if I just set project audio settings to 7.1, have 8 channel audio within video, and output to system default but apparently not
check how videoplayer audio output is configured, play normal AudioSource w/ multichannel clip - without videoplayer - in the project

  • might be bug in videoplayer

2] asio is fragile - you're on your own for the most part
esp. with unknown scripts and assets ^^

frigid tulip
#

But I was told they’re not getting it from the ASIO config they have (I’m still not perfectly clear on what that is), for some reason they seem to need/want it so I’m trying to adjust 😅

#

And yes I agree, I may be missing something but it seems a little too low level for this, not sure why default output isn’t wanted. The plug-in doesn’t have docs either so I don’t exactly know what it’s doing

#

Either way I’ll have to dig into this again and send a build for test, maybe what I have will work now