Nokia N900 >> Sbox

移植fceu 0.98.13


目前Maemo系統上的FCEU版本是0.98.13,不過移植該版本的作者並沒有將程式碼上傳到Repository,所幸FCEU 0.98.13版還可以從網路上下載,因此,司徒花了一些時間測試修改,發現改動的地方不大,使用者可以參考如下的說明步驟。

--- fceu-0.98.13/configure
+++ fceu-0.98.13_port_src/configure
@@ -5132,7 +5132,7 @@
   USE_SEXYAL_FALSE=
 fi
-  $as_echo "#define USE_SEXYAL 1" >>confdefs.h
+  #$as_echo "#define USE_SEXYAL 1" >>confdefs.h
 fi
@@ -5438,7 +5438,7 @@
 fi
-
+C80x86_FALSE='#'
 if expr match "$target_cpu" 'i.86' > /dev/null; then
   $as_echo "#define C80x86 1" >>confdefs.h

--- fceu-0.98.13/src/drivers/pc/sdl-sound.c
+++ fceu-0.98.13_port_src/src/drivers/pc/sdl-sound.c
@@ -266,10 +268,11 @@
   return(0);
  }
 
+ soundrate = 44100;
  spec.freq = soundrate;
  spec.format = AUDIO_S16SYS;
  spec.channels = 1;
- spec.samples = 256;
+ spec.samples = 1024;
  spec.callback = fillaudio;
  spec.userdata = 0;
 
@@ -278,12 +281,14 @@
  BufferSize -= spec.samples * 2;    /* SDL uses at least double-buffering, so
                multiply by 2. */
+ BufferSize = 8192;
  if(BufferSize < spec.samples) BufferSize = spec.samples;
 
  Buffer = malloc(sizeof(int) * BufferSize);
  BufferRead = BufferWrite = BufferIn = 0;
 
- //printf("SDL Size: %d, Internal size: %d\n",spec.samples,BufferSize);
+ printf("SDL Size: %d, Internal size: %d, Freq: %d\n",
+  spec.samples, BufferSize, soundrate);


返回上一頁