aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
authorAndreas Claesson <andreas.claesson@gmail.com>2005-05-26 06:09:55 +0000
committerAndreas Claesson <andreas.claesson@gmail.com>2005-05-26 06:09:55 +0000
commit2695e82bfa1b214251e33b49d55584b3e96eedfb (patch)
treefa571698a075f10c45c191cadeb89ed7e60c8c6c /src/audio.c
parentaf30dfbe847477360a1c86418a6f5a63aabdc8e4 (diff)
downloadmpd-2695e82bfa1b214251e33b49d55584b3e96eedfb.tar.gz
mpd-2695e82bfa1b214251e33b49d55584b3e96eedfb.tar.xz
mpd-2695e82bfa1b214251e33b49d55584b3e96eedfb.zip
Optimizes to volume changing code...
git-svn-id: https://svn.musicpd.org/mpd/branches/ancl@3289 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audio.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/audio.c b/src/audio.c
index 1bcd24de6..d622d45df 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -107,16 +107,11 @@ void initAudioDriver() {
void getInternalAudioFormat(AudioFormat * inAudioFormat,
AudioFormat * outAudioFormat)
{
- /*TODO add #define for integer version */
-
/* take the input format... */
copyAudioFormat(outAudioFormat,inAudioFormat);
- /* .. change to 32 bit integers with 28 bit resolution */
+ /* .. change to 32 bit integers with 28 bit fractional part */
outAudioFormat->bits = 32;
outAudioFormat->fracBits = 28;
- /* if forced output sample rate - use that as internal sample rate */
- if(audio_configFormat && (audio_configFormat->sampleRate != 0))
- outAudioFormat->sampleRate = audio_configFormat->sampleRate;
}
void getOutputAudioFormat(AudioFormat * inAudioFormat,
@@ -208,7 +203,7 @@ int parseAudioConfig(AudioFormat * audioFormat, char * conf) {
return -1;
}
- /* audioFormat is never shifted */
+ /* The output audio format is never shifted */
audioFormat->fracBits = 0;
return 0;