fixed zero initialization
This commit is contained in:
		
							parent
							
								
									73d91ce18e
								
							
						
					
					
						commit
						d92db38427
					
				| @ -61,10 +61,7 @@ void OnAudioBufferFilledCallback( | |||||||
| // device on MacOS.
 | // device on MacOS.
 | ||||||
| TfLiteStatus InitAudioRecording(tflite::ErrorReporter* error_reporter) { | TfLiteStatus InitAudioRecording(tflite::ErrorReporter* error_reporter) { | ||||||
|   // Set up the format of the audio - single channel, 32-bit float at 16KHz.
 |   // Set up the format of the audio - single channel, 32-bit float at 16KHz.
 | ||||||
|   #pragma clang diagnostic push |   AudioStreamBasicDescription recordFormat = { }; | ||||||
|   #pragma clang diagnostic ignored "-Wmissing-field-initializers" |  | ||||||
|   AudioStreamBasicDescription recordFormat = {0}; |  | ||||||
|   #pragma clang diagnostic pop  |  | ||||||
|   recordFormat.mSampleRate = kAudioSampleFrequency; |   recordFormat.mSampleRate = kAudioSampleFrequency; | ||||||
|   recordFormat.mFormatID = kAudioFormatLinearPCM; |   recordFormat.mFormatID = kAudioFormatLinearPCM; | ||||||
|   recordFormat.mFormatFlags = |   recordFormat.mFormatFlags = | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user