mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Update teakra and address more comments
This commit is contained in:
		
							parent
							
								
									05c372bf6c
								
							
						
					
					
						commit
						969dc3b46f
					
				
					 2 changed files with 9 additions and 4 deletions
				
			
		|  | @ -153,7 +153,12 @@ struct DspLle::Impl final { | |||
|         return &memory[DspDataOffset + baddr]; | ||||
|     } | ||||
| 
 | ||||
|     PipeStatus GetPipeStatus(u8 pipe_index, PipeDirection direction) { | ||||
|     const u8* GetDspDataPointer(u32 baddr) const { | ||||
|         auto& memory = teakra.GetDspMemory(); | ||||
|         return &memory[DspDataOffset + baddr]; | ||||
|     } | ||||
| 
 | ||||
|     PipeStatus GetPipeStatus(u8 pipe_index, PipeDirection direction) const { | ||||
|         u8 slot_index = PipeIndexToSlotIndex(pipe_index, direction); | ||||
|         PipeStatus pipe_status; | ||||
|         std::memcpy(&pipe_status, | ||||
|  | @ -249,7 +254,7 @@ struct DspLle::Impl final { | |||
|         } | ||||
|         return data; | ||||
|     } | ||||
|     u16 GetPipeReadableSize(u8 pipe_index) { | ||||
|     u16 GetPipeReadableSize(u8 pipe_index) const { | ||||
|         PipeStatus pipe_status = GetPipeStatus(pipe_index, PipeDirection::DSPtoCPU); | ||||
|         u16 size = pipe_status.write_bptr - pipe_status.read_bptr; | ||||
|         if (pipe_status.IsWrapped()) { | ||||
|  | @ -307,7 +312,7 @@ struct DspLle::Impl final { | |||
|             return; | ||||
|         } | ||||
| 
 | ||||
|         // Send finalization signal
 | ||||
|         // Send finalization signal via command/reply register 2
 | ||||
|         constexpr u16 FinalizeSignal = 0x8000; | ||||
|         while (!teakra.SendDataIsEmpty(2)) | ||||
|             RunTeakraSlice(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue