libretro / vice-libretro

Versatile Commodore 8-bit Emulator
GNU General Public License v2.0
40 stars 70 forks source link

No sound #14

Closed lodgerz closed 6 years ago

lodgerz commented 7 years ago

i have ArchLinux 32bit with alsa (no pulseaudio):

$ retroarch
s(1024,768,16) (0,0,0,0)
create surface RGB565 libretro
Init nuklear 0
First time we return from retro_run()!
 0  x64
 1  /media/DATI/EMU/C64/sd2iec/GAMEs/prg/n/nebulus.prg
bootp:(/media/DATI/EMU/SNES/ROMs//data)
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap embedded libretro...
loading default retro keymap start:
done!
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap embedded libretro...
loading default retro keymap start:
done!
HW scale not available, forcing to disabled
Reading configuration file `/home/pippo/.vice/vicerc'.
Error - Unknown resource `WindowTopHint'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 2.
Error - Unknown resource `WindowBotHint'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 3.
Error - Unknown resource `SaveResourcesOnExit'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 4.
Error - Unknown resource `ConfirmOnExit'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 5.
Error - Unknown resource `Window0Width'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 6.
Error - Unknown resource `Window0Height'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 7.
Error - Unknown resource `Window0Xpos'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 8.
Error - Unknown resource `Window0Ypos'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 9.
Error - Unknown resource `KeepAspectRatio'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 14.
Error - Unknown resource `TrueAspectRatio'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 15.
HW scale not available, forcing to disabled
Error - Unknown resource `VICIIXRANDRFullscreenMode'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 21.
Error - Unknown resource `VICIIVidmodeFullscreenMode'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 22.
Error - Unknown resource `Acia1Base'.
Warning - /home/pippo/.vice/vicerc: Unknown resource specification at line 42.
canvas width wants to be : 0
canvas height wants to be : 0
canvas depth wants to be : 0
canvas set to 0 x 0 :16
ui_error: Sound: device 'alsa' not found or not supported.
Update Geometry Old(1024,768) New(384,272)
enter gui!
free surf format palette color
free surf format palette 
free surf format  
free surf pixel  
free surfscreen
$ cat /home/pippo/.vice/vicerc
[C64]
WindowTopHint=24
WindowBotHint=23
SaveResourcesOnExit=1
ConfirmOnExit=0
Window0Width=768
Window0Height=591
Window0Xpos=295
Window0Ypos=326
SoundDeviceName="alsa"
SoundBufferSize=100
SoundSpeedAdjustment=0
SoundOutput=2
KeepAspectRatio=0
TrueAspectRatio=0
VirtualDevices=1
CIA1Model=0
CIA2Model=0
VICIIVideoCache=0
VICIIHwScale=0
VICIIXRANDRFullscreenMode=1
VICIIVidmodeFullscreenMode=2
VICIIPaletteFile="default"
VICIIPALOddLinePhase=1125
VICIIPALOddLineOffset=875
VICIIFilter=0
SidResidSampling=0
SidEngine=1
SidModel=0
KeySet1North=65362
KeySet1East=65363
KeySet1South=65364
KeySet1West=65361
KeySet1Fire=122
JoyDevice1=2
JoyDevice2=4
FSDevice8Dir="/media/DATI/EMU/C64/sd2iec/GAMEs/prg/n"
AutostartPrgMode=0
DriveTrueEmulation=0
DatasetteSpeedTuning=1
GlueLogic=0
Acia1Base=56832
EasyFlashWriteCRT=0
r-type commented 7 years ago

it seem to load the official upstream vice config file so it set alsa to sound driver. the libretro port only support retro as sound driver. set SoundDeviceName="alsa" to retro

lodgerz commented 7 years ago

thank you, it works. but now if i want to run vice i need to edit everytime vicerc :-| can i set 2 configurations separately?