Skip to content

Commit

Permalink
fix the audio init on Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
onflapp committed Sep 7, 2024
1 parent d69a71e commit fb11d71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Applications/Tools/nxaudio.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ int main(int argc, char** argv, char** env)
[controller setOutputVolumeMute];
}
}
else if ([[arguments objectAtIndex:1] isEqualToString:@"--status"]) {
SoundController* controller = [[SoundController alloc] init];
if ([controller connectAndWait]) {
NSLog(@"audio controller:%@", controller);
}
}
else {
printUsage();
exit(1);
Expand Down
3 changes: 3 additions & 0 deletions config/System/bin/startgsde
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ function start_services {
# needed to start synchronizing the X11 CLIPBOARD
echo " " | /Library/bin/nxpasteboard --copy

# needed to start PA audio sever
/Library/bin/nxaudio --status

show_status "about to start fswatcher Service" "gray30"
/Library/bin/fswatcher --daemon &
echo "$!" > /tmp/$UID-fswatcher.pid
Expand Down

0 comments on commit fb11d71

Please sign in to comment.