fix simulator support for music
This commit is contained in:
		@@ -8,7 +8,7 @@ namespace music {
 | 
			
		||||
     */
 | 
			
		||||
    //% help=music/play-tone weight=90
 | 
			
		||||
    //% blockId=device_play_note block="play|tone %note=device_note|for %duration=device_beat" icon="\uf025" blockGap=8
 | 
			
		||||
    //% parts="speaker"
 | 
			
		||||
    //% parts="speaker" async
 | 
			
		||||
    void playTone(int freqency, int ms) {
 | 
			
		||||
        uBit.soundmotor.Sound_On(freqency);
 | 
			
		||||
        if(ms > 0) uBit.sleep(ms);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								libs/core/shims.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								libs/core/shims.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -533,7 +533,7 @@ declare namespace music {
 | 
			
		||||
     */
 | 
			
		||||
    //% help=music/play-tone weight=90
 | 
			
		||||
    //% blockId=device_play_note block="play|tone %note=device_note|for %duration=device_beat" icon="\uf025" blockGap=8
 | 
			
		||||
    //% parts="speaker" shim=music::playTone
 | 
			
		||||
    //% parts="speaker" async shim=music::playTone
 | 
			
		||||
    function playTone(freqency: number, ms: number): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user