mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
fix silence initializer for alaw and ulaw
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1920 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
dbcd086332
commit
abd692e1ba
1 changed files with 4 additions and 2 deletions
|
|
@ -104,9 +104,11 @@ void pa_silence_memory(void *p, size_t length, const pa_sample_spec *spec) {
|
|||
c = 0;
|
||||
break;
|
||||
case PA_SAMPLE_ALAW:
|
||||
case PA_SAMPLE_ULAW:
|
||||
c = 80;
|
||||
c = 0xd5;
|
||||
break;
|
||||
case PA_SAMPLE_ULAW:
|
||||
c = 0xff;
|
||||
breaK;
|
||||
default:
|
||||
pa_assert_not_reached();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue