Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
796cd225
Commit
796cd225
authored
Oct 19, 2011
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pulse: cosmetics
parent
f5b09381
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
Changelog
Changelog
+1
-1
pulse.c
libavdevice/pulse.c
+13
-14
No files found.
Changelog
View file @
796cd225
...
...
@@ -53,7 +53,7 @@ easier to use. The changes are:
- lut, lutrgb, and lutyuv filters
- boxblur filter
- Ut Video decoder
- Pulseaudio input device
version 0.7:
...
...
libavdevice/pulse.c
View file @
796cd225
...
...
@@ -26,7 +26,6 @@
*
* This avdevice decoder allows to capture audio from a Pulseaudio device using
* the simple api.
*
*/
#include <pulse/simple.h>
...
...
@@ -52,19 +51,19 @@ typedef struct PulseData {
}
PulseData
;
static
pa_sample_format_t
codec_id_to_pulse_format
(
int
codec_id
)
{
switch
(
codec_id
)
{
case
CODEC_ID_PCM_U8
:
return
PA_SAMPLE_U8
;
case
CODEC_ID_PCM_ALAW
:
return
PA_SAMPLE_ALAW
;
case
CODEC_ID_PCM_MULAW
:
return
PA_SAMPLE_ULAW
;
case
CODEC_ID_PCM_S16LE
:
return
PA_SAMPLE_S16LE
;
case
CODEC_ID_PCM_S16BE
:
return
PA_SAMPLE_S16BE
;
case
CODEC_ID_PCM_F32LE
:
return
PA_SAMPLE_FLOAT32LE
;
case
CODEC_ID_PCM_F32BE
:
return
PA_SAMPLE_FLOAT32BE
;
case
CODEC_ID_PCM_S32LE
:
return
PA_SAMPLE_S32LE
;
case
CODEC_ID_PCM_S32BE
:
return
PA_SAMPLE_S32BE
;
case
CODEC_ID_PCM_S24LE
:
return
PA_SAMPLE_S24LE
;
case
CODEC_ID_PCM_S24BE
:
return
PA_SAMPLE_S24BE
;
default:
return
PA_SAMPLE_INVALID
;
switch
(
codec_id
)
{
case
CODEC_ID_PCM_U8
:
return
PA_SAMPLE_U8
;
case
CODEC_ID_PCM_ALAW
:
return
PA_SAMPLE_ALAW
;
case
CODEC_ID_PCM_MULAW
:
return
PA_SAMPLE_ULAW
;
case
CODEC_ID_PCM_S16LE
:
return
PA_SAMPLE_S16LE
;
case
CODEC_ID_PCM_S16BE
:
return
PA_SAMPLE_S16BE
;
case
CODEC_ID_PCM_F32LE
:
return
PA_SAMPLE_FLOAT32LE
;
case
CODEC_ID_PCM_F32BE
:
return
PA_SAMPLE_FLOAT32BE
;
case
CODEC_ID_PCM_S32LE
:
return
PA_SAMPLE_S32LE
;
case
CODEC_ID_PCM_S32BE
:
return
PA_SAMPLE_S32BE
;
case
CODEC_ID_PCM_S24LE
:
return
PA_SAMPLE_S24LE
;
case
CODEC_ID_PCM_S24BE
:
return
PA_SAMPLE_S24BE
;
default:
return
PA_SAMPLE_INVALID
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment