mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	audio: Move logging macros over to new fmt-compatible ones
This commit is contained in:
		
							parent
							
								
									d652e41365
								
							
						
					
					
						commit
						8d32bf9a96
					
				| @ -60,14 +60,14 @@ public: | |||||||
| 
 | 
 | ||||||
| private: | private: | ||||||
|     void GetAudioOutState(Kernel::HLERequestContext& ctx) { |     void GetAudioOutState(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_DEBUG(Service_Audio, "called"); |         NGLOG_DEBUG(Service_Audio, "called"); | ||||||
|         IPC::ResponseBuilder rb{ctx, 3}; |         IPC::ResponseBuilder rb{ctx, 3}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.Push(static_cast<u32>(audio_out_state)); |         rb.Push(static_cast<u32>(audio_out_state)); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void StartAudioOut(Kernel::HLERequestContext& ctx) { |     void StartAudioOut(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| 
 | 
 | ||||||
|         // Start audio
 |         // Start audio
 | ||||||
|         audio_out_state = AudioState::Started; |         audio_out_state = AudioState::Started; | ||||||
| @ -77,7 +77,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void StopAudioOut(Kernel::HLERequestContext& ctx) { |     void StopAudioOut(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| 
 | 
 | ||||||
|         // Stop audio
 |         // Stop audio
 | ||||||
|         audio_out_state = AudioState::Stopped; |         audio_out_state = AudioState::Stopped; | ||||||
| @ -89,7 +89,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void RegisterBufferEvent(Kernel::HLERequestContext& ctx) { |     void RegisterBufferEvent(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| 
 | 
 | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
| @ -97,7 +97,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void AppendAudioOutBuffer(Kernel::HLERequestContext& ctx) { |     void AppendAudioOutBuffer(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|         IPC::RequestParser rp{ctx}; |         IPC::RequestParser rp{ctx}; | ||||||
| 
 | 
 | ||||||
|         const u64 key{rp.Pop<u64>()}; |         const u64 key{rp.Pop<u64>()}; | ||||||
| @ -108,7 +108,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetReleasedAudioOutBuffer(Kernel::HLERequestContext& ctx) { |     void GetReleasedAudioOutBuffer(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| 
 | 
 | ||||||
|         // TODO(st4rk): This is how libtransistor currently implements the
 |         // TODO(st4rk): This is how libtransistor currently implements the
 | ||||||
|         // GetReleasedAudioOutBuffer, it should return the key (a VAddr) to the app and this address
 |         // GetReleasedAudioOutBuffer, it should return the key (a VAddr) to the app and this address
 | ||||||
| @ -164,7 +164,7 @@ private: | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) { | void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) { | ||||||
|     LOG_WARNING(Service_Audio, "(STUBBED) called"); |     NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|     IPC::RequestParser rp{ctx}; |     IPC::RequestParser rp{ctx}; | ||||||
| 
 | 
 | ||||||
|     const std::string audio_interface = "AudioInterface"; |     const std::string audio_interface = "AudioInterface"; | ||||||
| @ -180,7 +180,7 @@ void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) { | void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) { | ||||||
|     LOG_WARNING(Service_Audio, "(STUBBED) called"); |     NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| 
 | 
 | ||||||
|     if (!audio_out_interface) { |     if (!audio_out_interface) { | ||||||
|         audio_out_interface = std::make_shared<IAudioOut>(); |         audio_out_interface = std::make_shared<IAudioOut>(); | ||||||
|  | |||||||
| @ -56,7 +56,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void RequestUpdateAudioRenderer(Kernel::HLERequestContext& ctx) { |     void RequestUpdateAudioRenderer(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_DEBUG(Service_Audio, "%s", ctx.Description().c_str()); |         NGLOG_DEBUG(Service_Audio, "{}", ctx.Description()); | ||||||
|         AudioRendererResponseData response_data{}; |         AudioRendererResponseData response_data{}; | ||||||
| 
 | 
 | ||||||
|         response_data.section_0_size = |         response_data.section_0_size = | ||||||
| @ -79,7 +79,7 @@ private: | |||||||
| 
 | 
 | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void StartAudioRenderer(Kernel::HLERequestContext& ctx) { |     void StartAudioRenderer(Kernel::HLERequestContext& ctx) { | ||||||
| @ -87,7 +87,7 @@ private: | |||||||
| 
 | 
 | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void StopAudioRenderer(Kernel::HLERequestContext& ctx) { |     void StopAudioRenderer(Kernel::HLERequestContext& ctx) { | ||||||
| @ -95,7 +95,7 @@ private: | |||||||
| 
 | 
 | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void QuerySystemEvent(Kernel::HLERequestContext& ctx) { |     void QuerySystemEvent(Kernel::HLERequestContext& ctx) { | ||||||
| @ -105,7 +105,7 @@ private: | |||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushCopyObjects(system_event); |         rb.PushCopyObjects(system_event); | ||||||
| 
 | 
 | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     struct AudioRendererStateEntry { |     struct AudioRendererStateEntry { | ||||||
| @ -176,7 +176,7 @@ public: | |||||||
| 
 | 
 | ||||||
| private: | private: | ||||||
|     void ListAudioDeviceName(Kernel::HLERequestContext& ctx) { |     void ListAudioDeviceName(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|         IPC::RequestParser rp{ctx}; |         IPC::RequestParser rp{ctx}; | ||||||
| 
 | 
 | ||||||
|         const std::string audio_interface = "AudioInterface"; |         const std::string audio_interface = "AudioInterface"; | ||||||
| @ -188,7 +188,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void SetAudioDeviceOutputVolume(Kernel::HLERequestContext& ctx) { |     void SetAudioDeviceOutputVolume(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| 
 | 
 | ||||||
|         IPC::RequestParser rp{ctx}; |         IPC::RequestParser rp{ctx}; | ||||||
|         f32 volume = static_cast<f32>(rp.Pop<u32>()); |         f32 volume = static_cast<f32>(rp.Pop<u32>()); | ||||||
| @ -201,7 +201,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { |     void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|         IPC::RequestParser rp{ctx}; |         IPC::RequestParser rp{ctx}; | ||||||
| 
 | 
 | ||||||
|         const std::string audio_interface = "AudioDevice"; |         const std::string audio_interface = "AudioDevice"; | ||||||
| @ -213,7 +213,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void QueryAudioDeviceSystemEvent(Kernel::HLERequestContext& ctx) { |     void QueryAudioDeviceSystemEvent(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| 
 | 
 | ||||||
|         buffer_event->Signal(); |         buffer_event->Signal(); | ||||||
| 
 | 
 | ||||||
| @ -223,7 +223,7 @@ private: | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetActiveChannelCount(Kernel::HLERequestContext& ctx) { |     void GetActiveChannelCount(Kernel::HLERequestContext& ctx) { | ||||||
|         LOG_WARNING(Service_Audio, "(STUBBED) called"); |         NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
|         IPC::ResponseBuilder rb{ctx, 3}; |         IPC::ResponseBuilder rb{ctx, 3}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.Push<u32>(1); |         rb.Push<u32>(1); | ||||||
| @ -250,7 +250,7 @@ void AudRenU::OpenAudioRenderer(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.PushIpcInterface<Audio::IAudioRenderer>(); |     rb.PushIpcInterface<Audio::IAudioRenderer>(); | ||||||
| 
 | 
 | ||||||
|     LOG_DEBUG(Service_Audio, "called"); |     NGLOG_DEBUG(Service_Audio, "called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void AudRenU::GetAudioRendererWorkBufferSize(Kernel::HLERequestContext& ctx) { | void AudRenU::GetAudioRendererWorkBufferSize(Kernel::HLERequestContext& ctx) { | ||||||
| @ -259,7 +259,7 @@ void AudRenU::GetAudioRendererWorkBufferSize(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push<u64>(0x400); |     rb.Push<u64>(0x400); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service_Audio, "(STUBBED) called"); |     NGLOG_WARNING(Service_Audio, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) { | void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) { | ||||||
| @ -268,7 +268,7 @@ void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.PushIpcInterface<Audio::IAudioDevice>(); |     rb.PushIpcInterface<Audio::IAudioDevice>(); | ||||||
| 
 | 
 | ||||||
|     LOG_DEBUG(Service_Audio, "called"); |     NGLOG_DEBUG(Service_Audio, "called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| } // namespace Service::Audio
 | } // namespace Service::Audio
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Lioncash
						Lioncash