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

        _channels.Add( channel );

        return channel;
    }
Ejemplo 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
    }