Fixup Audio startup and add to documents (#13606)
* Fixup Audio startup and add to documents * fix doc descriptions
This commit is contained in:
		
							parent
							
								
									4b453dca92
								
							
						
					
					
						commit
						4e3726bfe1
					
				
					 3 changed files with 30 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -139,6 +139,9 @@ void audio_init() {
 | 
			
		|||
        audio_initialized = true;
 | 
			
		||||
    }
 | 
			
		||||
    stop_all_notes();
 | 
			
		||||
#ifndef AUDIO_INIT_DELAY
 | 
			
		||||
    audio_startup();
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void audio_startup(void) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -398,7 +398,7 @@ void matrix_init_quantum() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void matrix_scan_quantum() {
 | 
			
		||||
#if defined(AUDIO_ENABLE)
 | 
			
		||||
#if defined(AUDIO_ENABLE) && defined(AUDIO_INIT_DELAY)
 | 
			
		||||
    // There are some tasks that need to be run a little bit
 | 
			
		||||
    // after keyboard startup, or else they will not work correctly
 | 
			
		||||
    // because of interaction with the USB device state, which
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue