pausing until sound is done in mood
This commit is contained in:
		@@ -10,11 +10,11 @@
 | 
			
		||||
        "base": "file:../base",
 | 
			
		||||
        "core": "file:../core",
 | 
			
		||||
        "music": "file:../music",
 | 
			
		||||
        "mood": "file:../mood",
 | 
			
		||||
        "color-sensor": "file:../color-sensor",
 | 
			
		||||
        "touch-sensor": "file:../touch-sensor",
 | 
			
		||||
        "ultrasonic-sensor": "file:../ultrasonic-sensor",
 | 
			
		||||
        "gyro-sensor": "file:../gyro-sensor"
 | 
			
		||||
        "gyro-sensor": "file:../gyro-sensor",
 | 
			
		||||
        "mood": "file:../mood"
 | 
			
		||||
    },
 | 
			
		||||
    "public": true
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -23,8 +23,7 @@ namespace brick {
 | 
			
		||||
        show() {
 | 
			
		||||
            brick.setLight(this.light);
 | 
			
		||||
            brick.showImage(this.image);
 | 
			
		||||
            if (this.sound)
 | 
			
		||||
                music.playSoundEffect(this.sound);
 | 
			
		||||
            music.playSoundEffectUntilDone(this.sound);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,7 @@
 | 
			
		||||
    ],
 | 
			
		||||
    "public": true,
 | 
			
		||||
    "dependencies": {
 | 
			
		||||
        "core": "file:../core"
 | 
			
		||||
        "core": "file:../core",
 | 
			
		||||
        "music": "file:../music"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user