audio_format: basic support for floating point samples
Support for conversion from float to 16, 24 and 32 bit integer samples.
This commit is contained in:
@@ -167,6 +167,10 @@ pcm_volume(void *buffer, size_t length,
|
||||
case SAMPLE_FORMAT_S32:
|
||||
pcm_volume_change_32(buffer, end, volume);
|
||||
return true;
|
||||
|
||||
case SAMPLE_FORMAT_FLOAT:
|
||||
/* XXX */
|
||||
return false;
|
||||
}
|
||||
|
||||
/* unreachable */
|
||||
|
||||
Reference in New Issue
Block a user