o cleanup
This commit is contained in:
31
tools/bsnes/ui_qt/interface.cpp
Executable file
31
tools/bsnes/ui_qt/interface.cpp
Executable file
@@ -0,0 +1,31 @@
|
||||
SNESInterface snesinterface;
|
||||
|
||||
void SNESInterface::video_refresh(uint16_t *data, unsigned pitch, unsigned *line, unsigned width, unsigned height) {
|
||||
uint32_t *output;
|
||||
unsigned outpitch;
|
||||
if(video.lock(output, outpitch) == true) {
|
||||
unsigned outwidth, outheight;
|
||||
libfilter::filter.render(output, outpitch, outwidth, outheight, data, pitch, line, width, height);
|
||||
video.unlock();
|
||||
video.refresh(outwidth, outheight);
|
||||
}
|
||||
}
|
||||
|
||||
void SNESInterface::audio_sample(uint16_t left, uint16_t right) {
|
||||
if(config.audio.mute) left = right = 0;
|
||||
audio.sample(left, right);
|
||||
}
|
||||
|
||||
void SNESInterface::input_poll() {
|
||||
inputManager.poll();
|
||||
}
|
||||
|
||||
int16_t SNESInterface::input_poll(unsigned deviceid, unsigned id) {
|
||||
return inputManager.getStatus(deviceid, id);
|
||||
}
|
||||
|
||||
void SNESInterface::init() {
|
||||
}
|
||||
|
||||
void SNESInterface::term() {
|
||||
}
|
||||
Reference in New Issue
Block a user