mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	DSP now works... committing this!!
This commit is contained in:
		
							parent
							
								
									5604613642
								
							
						
					
					
						commit
						3d1180ee21
					
				
					 3 changed files with 20 additions and 9 deletions
				
			
		|  | @ -1,3 +1,4 @@ | |||
| #pragma optimize("", off) | ||||
| // Copyright 2017 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
|  | @ -14,7 +15,11 @@ | |||
| namespace AudioCore { | ||||
| 
 | ||||
| DspInterface::DspInterface() = default; | ||||
| DspInterface::~DspInterface() = default; | ||||
| DspInterface::~DspInterface() { | ||||
|     LOG_WARNING(Audio_DSP, "c1"); | ||||
|     sink.reset(); | ||||
|     LOG_WARNING(Audio_DSP, "c2"); | ||||
| } | ||||
| 
 | ||||
| void DspInterface::SetSink(const std::string& sink_id, const std::string& audio_device) { | ||||
|     sink = CreateSinkFromID(Settings::values.sink_id, Settings::values.audio_device_id); | ||||
|  |  | |||
|  | @ -16,6 +16,7 @@ | |||
| #elif HAVE_FDK | ||||
| #include "audio_core/hle/fdk_decoder.h" | ||||
| #endif | ||||
| #include <iostream> | ||||
| #include "audio_core/hle/common.h" | ||||
| #include "audio_core/hle/decoder.h" | ||||
| #include "audio_core/hle/hle.h" | ||||
|  | @ -148,8 +149,11 @@ DspHle::Impl::Impl(DspHle& parent_, Memory::MemorySystem& memory) : parent(paren | |||
| } | ||||
| 
 | ||||
| DspHle::Impl::~Impl() { | ||||
|     LOG_WARNING(Audio_DSP, "b1"); | ||||
|     Core::Timing& timing = Core::System::GetInstance().CoreTiming(); | ||||
|     LOG_WARNING(Audio_DSP, "b2"); | ||||
|     timing.UnscheduleEvent(tick_event, 0); | ||||
|     LOG_WARNING(Audio_DSP, "b3"); | ||||
| } | ||||
| 
 | ||||
| DspState DspHle::Impl::GetDspState() const { | ||||
|  | @ -448,7 +452,12 @@ void DspHle::Impl::AudioTickCallback(s64 cycles_late) { | |||
| } | ||||
| 
 | ||||
| DspHle::DspHle(Memory::MemorySystem& memory) : impl(std::make_unique<Impl>(*this, memory)) {} | ||||
| DspHle::~DspHle() = default; | ||||
| DspHle::~DspHle() { | ||||
| 
 | ||||
|     LOG_WARNING(Audio_DSP, "a1"); | ||||
|     impl.reset(); | ||||
|     LOG_WARNING(Audio_DSP, "a2"); | ||||
| } | ||||
| 
 | ||||
| u16 DspHle::RecvData(u32 register_number) { | ||||
|     return impl->RecvData(register_number); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue