pub struct Psx { /* private fields */ }
Implementations§
Source§impl Psx
impl Psx
pub fn new<BiosPath: AsRef<Path>, DiskPath: AsRef<Path>>( bios_file_path: BiosPath, disk_file: Option<DiskPath>, config: PsxConfig, device: Arc<Device>, queue: Arc<Queue>, ) -> Result<Self, PsxError>
pub fn reset(&mut self)
Sourcepub fn clock_based_on_audio(&mut self, max_clocks: u32) -> (bool, CpuState)
pub fn clock_based_on_audio(&mut self, max_clocks: u32) -> (bool, CpuState)
Return true
if the frame is finished, false
otherwise.
Return the CPU state.
Sourcepub fn clock_based_on_video(&mut self, max_clocks: u32) -> (bool, CpuState)
pub fn clock_based_on_video(&mut self, max_clocks: u32) -> (bool, CpuState)
Return true
if the frame is finished, false
otherwise.
Return the CPU state.
pub fn clock_full_audio_frame(&mut self) -> CpuState
pub fn clock_full_video_frame(&mut self) -> CpuState
pub fn change_controller_key_state( &mut self, key: DigitalControllerKey, pressed: bool, )
pub fn change_cdrom_shell_open_state(&mut self, open: bool)
pub fn blit_to_front( &mut self, dest_image: Arc<Image>, full_vram: bool, in_future: Box<dyn GpuFuture>, ) -> Box<dyn GpuFuture>
pub fn take_audio_buffer(&mut self) -> Vec<f32>
pub fn cpu(&mut self) -> &mut Cpu
pub fn bus_read_u32(&mut self, addr: u32) -> Result<u32, String>
pub fn bus_read_u16(&mut self, addr: u32) -> Result<u16, String>
pub fn bus_read_u8(&mut self, addr: u32) -> Result<u8, String>
pub fn print_spu_state(&self)
Auto Trait Implementations§
impl !Freeze for Psx
impl !RefUnwindSafe for Psx
impl !Send for Psx
impl !Sync for Psx
impl Unpin for Psx
impl !UnwindSafe for Psx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more