Esempio n. 1
0
    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;
    }
Esempio n. 2
0
    protected LugusAudioChannel CreateChannel(Lugus.AudioChannelType type)
    {
        LugusAudioChannel channel = new LugusAudioChannel( type );

        _channels.Add( channel );

        return channel;
    }
Esempio n. 3
0
    public LugusAudioChannel(Lugus.AudioChannelType type)
    {
        this.ChannelType = type;

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