Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
1cbb7548
Commit
1cbb7548
authored
Aug 17, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fluidsynth: use native FL32 format, avoid converting to 16 bits and back
parent
a2ae519c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/codec/fluidsynth.c
modules/codec/fluidsynth.c
+5
-5
No files found.
modules/codec/fluidsynth.c
View file @
1cbb7548
...
...
@@ -81,8 +81,8 @@ static int Open (vlc_object_t *p_this)
p_dec
->
fmt_out
.
audio
.
i_original_channels
=
p_dec
->
fmt_out
.
audio
.
i_physical_channels
=
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
;
p_dec
->
fmt_out
.
i_codec
=
AOUT_FMT_S16_NE
;
p_dec
->
fmt_out
.
audio
.
i_bitspersample
=
16
;
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
;
p_dec
->
fmt_out
.
audio
.
i_bitspersample
=
32
;
p_dec
->
pf_decode_audio
=
DecodeBlock
;
p_sys
=
p_dec
->
p_sys
=
malloc
(
sizeof
(
*
p_sys
));
...
...
@@ -186,8 +186,8 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
p_out
->
start_date
=
aout_DateGet
(
&
p_sys
->
end_date
);
p_out
->
end_date
=
aout_DateIncrement
(
&
p_sys
->
end_date
,
samples
);
fluid_synth_write_
s16
(
p_sys
->
synth
,
samples
,
(
int16_t
*
)
p_out
->
p_buffer
,
0
,
2
,
(
int16_t
*
)
p_out
->
p_buffer
,
1
,
2
);
fluid_synth_write_
float
(
p_sys
->
synth
,
samples
,
p_out
->
p_buffer
,
0
,
2
,
p_out
->
p_buffer
,
1
,
2
);
return
p_out
;
}
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