コード例 #1
0
ファイル: LugusAudioDefault.cs プロジェクト: rmarx/ReverseRPG
    public LugusAudioChannel GetChannel(Lugus.AudioChannelType type)
    {
        LugusAudioChannel output = null;

        foreach( LugusAudioChannel channel in _channels )
        {
            if( channel.ChannelType == type )
            {
                output = channel;
                break;
            }
        }

        if( output == null )
        {
            output = CreateChannel( type );
        }

        return output;
    }
コード例 #2
0
ファイル: LugusAudioDefault.cs プロジェクト: rmarx/ReverseRPG
    protected LugusAudioChannel CreateChannel(Lugus.AudioChannelType type)
    {
        LugusAudioChannel channel = new LugusAudioChannel( type );

        _channels.Add( channel );

        return channel;
    }
コード例 #3
0
ファイル: LugusAudioChannel.cs プロジェクト: rmarx/Blood
    public LugusAudioChannel(Lugus.AudioChannelType type)
    {
        this.ChannelType = type;

        // TODO : create a number of tracks at the beginning to act as a Pool
    }