mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	audio_core: hle: mf: lint
This commit is contained in:
		
							parent
							
								
									671ac441e9
								
							
						
					
					
						commit
						a4ba35fe3a
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		|  | @ -52,6 +52,8 @@ unique_mfptr<IMFTransform> MFDecoderInit(GUID audio_format) { | |||
|         if (FAILED(hr)) | ||||
|             transform = nullptr; | ||||
|         activate[n]->Release(); | ||||
|         if (SUCCEEDED(hr)) | ||||
|             break; | ||||
|     } | ||||
|     if (transform == nullptr) { | ||||
|         ReportError("Failed to initialize MFT", hr); | ||||
|  | @ -59,10 +61,11 @@ unique_mfptr<IMFTransform> MFDecoderInit(GUID audio_format) { | |||
|         return nullptr; | ||||
|     } | ||||
|     CoTaskMemFree(activate); | ||||
|     return std::move(transform); | ||||
|     return transform; | ||||
| } | ||||
| 
 | ||||
| unique_mfptr<IMFSample> CreateSample(void* data, DWORD len, DWORD alignment, LONGLONG duration) { | ||||
| unique_mfptr<IMFSample> CreateSample(const void* data, DWORD len, DWORD alignment, | ||||
|                                      LONGLONG duration) { | ||||
|     HRESULT hr = S_OK; | ||||
|     unique_mfptr<IMFMediaBuffer> buf; | ||||
|     unique_mfptr<IMFSample> sample; | ||||
|  |  | |||
|  | @ -74,7 +74,7 @@ struct ADTSMeta { | |||
| 
 | ||||
| // exported functions
 | ||||
| unique_mfptr<IMFTransform> MFDecoderInit(GUID audio_format = MFAudioFormat_AAC); | ||||
| unique_mfptr<IMFSample> CreateSample(void* data, DWORD len, DWORD alignment = 1, | ||||
| unique_mfptr<IMFSample> CreateSample(const void* data, DWORD len, DWORD alignment = 1, | ||||
|                                      LONGLONG duration = 0); | ||||
| bool SelectInputMediaType(IMFTransform* transform, int in_stream_id, const ADTSData& adts, | ||||
|                           const UINT8* user_data, UINT32 user_data_len, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue