Subversion Repositories Shiroi

Rev

Rev 41 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 42
Line 1... Line 1...
1
/* $Id: main.c 41 2024-09-02 03:56:45Z nishi $ */
1
/* $Id: main.c 42 2024-09-02 04:07:45Z nishi $ */
2
 
2
 
3
#include <stdio.h>
3
#include <stdio.h>
4
#include <stdbool.h>
4
#include <stdbool.h>
5
#include <sys/stat.h>
5
#include <sys/stat.h>
6
#include <stdlib.h>
6
#include <stdlib.h>
Line 164... Line 164...
164
	if(video != NULL) {
164
	if(video != NULL) {
165
		InitWindow(video->width * scx + ((debug == NULL && text == NULL) ? 0 : 200), video->height * scy, "Shiroi Emulator");
165
		InitWindow(video->width * scx + ((debug == NULL && text == NULL) ? 0 : 200), video->height * scy, "Shiroi Emulator");
166
	} else {
166
	} else {
167
		InitWindow(640 + ((debug == NULL && text == NULL) ? 0 : 200), 480, "Shiroi Emulator");
167
		InitWindow(640 + ((debug == NULL && text == NULL) ? 0 : 200), 480, "Shiroi Emulator");
168
	}
168
	}
-
 
169
	SetExitKey(KEY_NULL);
169
	InitAudioDevice();
170
	InitAudioDevice();
170
	SetAudioStreamBufferSizeDefault(512);
171
	SetAudioStreamBufferSizeDefault(512);
171
	AudioStream as = LoadAudioStream(48000, 16, 1);
172
	AudioStream as = LoadAudioStream(48000, 16, 1);
172
	SetAudioStreamCallback(as, shiroi.play_audio);
173
	SetAudioStreamCallback(as, shiroi.play_audio);
173
	SetTargetFPS(60);
174
	SetTargetFPS(60);