Comments (3)
Only because I've crossed this bridge before... and figured out the easiest work-around for me =)
..relative to Debian 12.5/amd64 with xfce4 WM with pulseaudio (PA) installed, current amiberry git preview
branch
When you say 'headphones', we're actually talking about output 'jacks'. On the desktop, the host OS should take care of 'jack detection' when headphones are plugged in, and redirect output path from 'line out' to 'headphones' accordingly (I can choose between them if both jacks are plugged in, via the PA-volume-control utility). This is based on some daft logic that when a user plugs in headphones, then quite obviously they want to use those, and not the line out sound system.
When you say HDMI (DP+, other), we're actually talking about 'bridges'...hardware ICs. As such, these can/may run concurrently with the primary audio device, however jack detection still works on that device. Again, from the desktop, I can turn these devices on/off using the PA-volume-control utility. (I think 'port detection' also works here nowadays on the digital audio stuffs with PA).
So...seeing as I can futz with all of this stuff at the host OS level, I always figured it as beyond the purview of amiberry's control...(dunno how much is exposed in sdl_audio), so to create a "headphones only" config.uae you have to work with what you've got, which is significant ~ amiberry will always initialize with the host OS' definition of what is the primary (system default/index=0) audio device, unless otherwise overridden by config.uae ...of this, you can be sure.
Seeing as we don't have jack detection/selection, but do have SDL audio device selection ...we'll go with that... so I search ebay or such for "usb audio adapter" ...nice'n'cheap, choose your poison, some are better than others (add "interfaces" to the search string). As this is a USB hotplug device, it always enumerates as the 'secondary' sound device;
As most all of these USB devices enumerate as hid-generic/hidraw class devices, naming of 'USB Audio Device Analog Stereo' is consistent across most all of these device (one config.uae fits all ;)
The resultant config.uae will contain;
amiberry.soundcard=1
amiberry.soundcardname=USB Audio Device Analog Stereo
//Fallback test: If amiberry loads a config.uae that defines soundcard settings for a soundcard device that doesn't exist //(USB audio adapter not plugged in), it uses the settings in amiberry.conf instead...result: Correct.
Thusly, you can create a config.uae file, that works with both the host OS' primary audio device setup, or exclusively with the USB audio (headphone) device if it's connected to the host system when amiberry is launched. You can't hotplug the device ; you have to Quit and restart amiberry for the added device to appear in the dropdown list. You can modify the user (me ;) procedure however, by plugging in the USB device the headphones are plugged into, instead of just plugging in the headphones to the primary sound device =)
I know it's not exactly what you're after here, but I thought I'd explain the workaround just in case it's useful example ;)
FWIW, the need for these meanderings was due to some (BIOS) behavior of a few USFF units with inbuilt speaker, that wouldn't turn off if headphones were jacked in (LFS build, alsa_lib only) ...you also had to feed it a few mod_params to promote the audio interface above DP+, and set the buffersize to avoid underruns (depends on which variant of intel q87 chipset is used) Disconnecting speaker soldered to board..too much time/effort, $5 USB solution.. these things bristle with USB ports on the front.
HTH
from amiberry.
Have you tried using the new "system default" option in the Sound panel? Does that use your system default audio output device?
from amiberry.
@midwan You are a genius, this checkbox is exactly what I needed, now amiberry can be configured like the other retroarch-emulators per system default sound option. Sorry, that I didn't see this new feature before.
from amiberry.
Related Issues (20)
- default_auto_crop in config isnβt respected? HOT 7
- Capsimg.so is now built in the plugin directory. HOT 8
- Some questions to the new (since 5.7.0) section of WHDLoad in the Amiberry GUI HOT 8
- Query: update wiki/Available-Platforms to better reflect the current state of platform=x86-64 ? HOT 1
- Linux x86_64 crashes when saving config HOT 1
- Query: GUI->Quickstart->Amiga model: CD32 ....should Input->Port 1: also change to 'CD32 pad'? HOT 1
- Question: Is the GUI->WHDLoad panel -> Slave Data path: textbox field just a 'telltale' or a config tool? HOT 2
- Graphical corruption on MacBook M1 HOT 14
- Query: GUI->Input panel ~ Mouse/Joystick auto-switching always selected? HOT 1
- F12 key not working as expected in Fullscreen mode HOT 19
- Implement Integer scaling method HOT 2
- Latest Release 5.7.2 - missing buster assets? HOT 11
- iOS Version HOT 1
- Custom controls not loaded HOT 37
- Mac - Font in windowed main GUI "fades" while mouse moving HOT 8
- Mouse gets stuck in GUI window in latest Preview
- Networking / bsdsocket.library not working correctly HOT 3
- SpaceQuestEnhanced_v1.3_MT32_2222.lha does not start (missing xpkmaster.library v4) HOT 7
- Controller has no function in the game (amiberry-v5.7.3-debian-buster-armhf-rpi3) HOT 2
- Query: wiki/WHDLoad-Auto-booting [discepancy]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amiberry.