mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-23 15:02:08 +01:00
Update pcm_decoder.c
This commit is contained in:
parent
b250b3faa5
commit
2e9ce7cd45
@ -232,6 +232,10 @@ int32_t pcm_bytes_to_samples(size_t bytes, int channels, int bits_per_sample) {
|
||||
return ((int64_t)bytes * 8) / channels / bits_per_sample;
|
||||
}
|
||||
|
||||
int32_t pcm24_bytes_to_samples(size_t bytes, int channels) {
|
||||
return pcm_bytes_to_samples(bytes, channels, 24);
|
||||
}
|
||||
|
||||
int32_t pcm16_bytes_to_samples(size_t bytes, int channels) {
|
||||
return pcm_bytes_to_samples(bytes, channels, 16);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user