Browse Source

Fix PulseAudio audio format to OBS audio format mapping

The format PA_SAMPLE_S24_32LE is a 24 bit audio format in 32 bit integers
and not a 32 bit audio format and so it should no be mapped to
AUDIO_FORMAT_32BIT.
Christoph Hohmann 11 years ago
parent
commit
8166932d00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/linux-pulseaudio/pulse-input.c

+ 1 - 1
plugins/linux-pulseaudio/pulse-input.c

@@ -58,7 +58,7 @@ static enum audio_format pulse_to_obs_audio_format(
 	switch (format) {
 	case PA_SAMPLE_U8:        return AUDIO_FORMAT_U8BIT;
 	case PA_SAMPLE_S16LE:     return AUDIO_FORMAT_16BIT;
-	case PA_SAMPLE_S24_32LE:  return AUDIO_FORMAT_32BIT;
+	case PA_SAMPLE_S32LE:     return AUDIO_FORMAT_32BIT;
 	case PA_SAMPLE_FLOAT32LE: return AUDIO_FORMAT_FLOAT;
 	default:                  return AUDIO_FORMAT_UNKNOWN;
 	}