English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 29 April 2012, 12:55   #1
Speedvicio
Registered User
Speedvicio's Avatar
 
Join Date: Feb 2012
Location: Sicily/Palermo/Italy
Age: 43
Posts: 62
FS-UAE and external usb soundcard on Linux

Frode a request.
I have a external usb soundcard not compatible with alsamixer but fully functional.
With this card fs-uae does not play any sound, probably because of incompatibility with alsamixer.
Can I choose from the emulator the audio output driver between pulseaudio,sdl or alsa?
Speedvicio is offline  
Old 29 April 2012, 22:22   #2
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 40
Posts: 3,789
Quote:
Originally Posted by Speedvicio View Post
Frode a request.
I have a external usb soundcard not compatible with alsamixer but fully functional.
With this card fs-uae does not play any sound, probably because of incompatibility with alsamixer.
Can I choose from the emulator the audio output driver between pulseaudio,sdl or alsa?
Hi, I assume you mean that you get sound in at least some applications or with some drivers on Linux...

FS-UAE only uses OpenAL. But you most likely have the "soft openal" version which does not talk to the hardware directly, but through another audio driver/backend such as ALSA. OpenAL can have many different backends, and it is possible to choose which one is used.

Take a look at this:
http://repo.or.cz/w/openal-soft.git/...lsoftrc.sample

You are interested in this option:
Code:
## drivers:
#  Sets the backend driver list order, comma-seperated. Unknown backends and
#  duplicated names are ignored. Unlisted backends won't be considered for use
#  unless the list is ended with a comma (eg. 'oss,' will list OSS first
#  followed by all other available backends, while 'oss' will list OSS only).
#  Backends prepended with - won't be available for use (eg. '-oss,' will allow
#  all available backends except OSS). An empty list means the default.
drivers = pulse,alsa,core,oss,solaris,sndio,mmdevapi,dsound,winmm,port,opensl,null,wave
On my Ubuntu 12.04, OpenAL chooses PulseAudio output by default.
I tested it, creating ~/.alsoftrc with this content:
Code:
drivers = alsa
... and this forced OpenAL to use talk to ALSA directly on my system.

If you can use ALSA, and this USB device of yours is not the default device, you may need to consider this option as well (still in .alsoftrc -has nothing to do with FS-UAE !!):
Code:
[alsa]
## device:
#  Sets the device name for the default playback device.
#device = default
For a bit easier debugging, the next development release will output some helpful stuff to the log (example output for my computer):
Code:
fs_emu_audio_init
OpenAL devices:
- PulseAudio Default
- ALSA Default
- PortAudio Default
- No Output
openal default device: PulseAudio Default
openal device opened: PulseAudio Default

Last edited by FrodeSolheim; 29 April 2012 at 22:34.
FrodeSolheim is offline  
Old 29 April 2012, 23:47   #3
Speedvicio
Registered User
Speedvicio's Avatar
 
Join Date: Feb 2012
Location: Sicily/Palermo/Italy
Age: 43
Posts: 62
Apparently it is the same problem I found with Mednafen.
Unfortunately, the only way to obtain the audio output would be to force the use of the sdl driver, which is not expected from the options of openal.
Speedvicio is offline  
Old 30 April 2012, 23:22   #4
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 40
Posts: 3,789
Quote:
Originally Posted by Speedvicio View Post
Apparently it is the same problem I found with Mednafen.
Unfortunately, the only way to obtain the audio output would be to force the use of the sdl driver, which is not expected from the options of openal.
SDL does not talk to audio hardware directly either, like OpenAL, it too has support for different audio backends, like ALSA and PulseAudio. So the big question is, what does SDL do on your system that makes audio work for you?

If there were an SDL backend for OpenAL, you would basically have this:

FS-UAE -> OpenAL -> SDL -> ? -> USB soundcard

Unless SDL supports a backend which OpenAL does not, the following audio path should be able to work just as well:

FS-UAE -> OpenAL -> ? -> USB soundcard

* Have you tried fiddling with .alsoftrc?
* Do you know what audio backend / settings SDL uses on your system?

Once FS-UAE 1.3.0 is released, we'll be able to see in the log what audio system OpenAL chooses on your system, and what other options are available. It will then also be possible to see (in the log) that the audio backend options in .alsoftrc are properly applied.

Last edited by FrodeSolheim; 01 May 2012 at 00:18.
FrodeSolheim is offline  
Old 01 May 2012, 14:25   #5
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 40
Posts: 3,789
Here is a pre-release (1.3.0test1) to help you debug the audio problem:
http://fengestad.no/fs-uae/files/fs-....0test1.tar.gz

You can see in the changelog what audio backends are available on your system, and after making modifications to .alsoftrc, you can verify in the log file that the specified backend is actually used.
FrodeSolheim is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
G-FS-UAE (GUI/Frontend for Linux FS-UAE) Speedvicio support.FS-UAE 12 05 November 2012 20:14
Configure USB joystic in e-uae (OSX & Linux) Gaula92 support.OtherUAE 6 09 February 2010 19:51
E-UAE on Linux :) digit01 New to Emulation or Amiga scene 23 05 May 2009 14:39
Can I use linux command under UAE? BiL0 New to Emulation or Amiga scene 7 26 May 2006 18:16
Problems with UAE under Linux... Lettmennli support.WinUAE 15 13 February 2002 22:09

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.08429 seconds with 15 queries