[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question with $PLAY_COMMAND
From: |
Chris Brannon |
Subject: |
Question with $PLAY_COMMAND |
Date: |
Thu, 04 Mar 2010 08:31:48 -0600 |
Steve Holmes wrote:
> My question here is "Where does the value of $PLAY_COMMAND get set and
> how for each modules?"
It's set in src/modules/generic.c.
Basically, the code tries to select the appropriate play command
for your chosen audio output method.
Here it is, at line 389:
if (!strcmp(audio_settings.audio_output_method, "oss")){
play_command = strdup("play");
}else if (!strcmp(audio_settings.audio_output_method, "alsa")){
play_command = strdup("aplay");
}else if (!strcmp(audio_settings.audio_output_method, "pulse")){
play_command = strdup("paplay");
}else{
assert("Unknown audio output method requested");
}
Later, at line 403, $PLAY_COMMAND is substituted with the value
selected earlier:
e_string = strdup(GenericExecuteSynth);
e_string = string_replace(e_string, "$PLAY_COMMAND",
play_command);
At first glance, there's no play command assigned to the libao backend,
but I don't believe this is the problem.
Do your logs shed any light on the situation?
You might have a swift-generic.log that will tell you something.
-- Chris
- Question with $PLAY_COMMAND, Steve Holmes, 2010/03/01
- Question with $PLAY_COMMAND, Steve Holmes, 2010/03/04
- Question with $PLAY_COMMAND,
Chris Brannon <=
- Question with $PLAY_COMMAND, Steve Holmes, 2010/03/04
- Question with $PLAY_COMMAND, Chris Brannon, 2010/03/05
- Question with $PLAY_COMMAND, Steve Holmes, 2010/03/05
- Question with $PLAY_COMMAND, Chris Brannon, 2010/03/05
- Question with $PLAY_COMMAND, Steve Holmes, 2010/03/05