Ejemplo n.º 1
0
	// Use this for initialization
	void Start () {
        var bs = (Resources.Load("2.ogg") as TextAsset).bytes;

        System.IO.MemoryStream ms = new System.IO.MemoryStream(bs);
        //CSVOggPlayer p = new CSVOggPlayer(ms);
        NVOggPlayer p = new NVOggPlayer(ms);
        this.GetComponent<DSPPlayer>().Play(p);
	}
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        var bs = (Resources.Load("1.ogg") as TextAsset).bytes;

        System.IO.MemoryStream ms = new System.IO.MemoryStream(bs);
        //CSVOggPlayer p = new CSVOggPlayer(ms);
        NVOggPlayer p = new NVOggPlayer(ms);

        this.GetComponent <DSPPlayer>().Play(p);
    }