Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
665b7ad5
Commit
665b7ad5
authored
Mar 05, 2001
by
Josh Coalson
Browse files
rename ENCODING to STREAMINFO
parent
30e5396a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugin_winamp2/in_flac.c
View file @
665b7ad5
...
...
@@ -400,12 +400,12 @@ void metadata_callback(const FLAC__FileDecoder *decoder, const FLAC__StreamMetaD
{
stream_info_struct
*
stream_info
=
(
stream_info_struct
*
)
client_data
;
(
void
)
decoder
;
if
(
metadata
->
type
==
FLAC__METADATA_TYPE_
ENCODING
)
{
assert
(
metadata
->
data
.
encoding
.
total_samples
<
0x100000000
);
/* this plugin can only handle < 4 gigasamples */
stream_info
->
total_samples
=
(
unsigned
)(
metadata
->
data
.
encoding
.
total_samples
&
0xffffffff
);
stream_info
->
bits_per_sample
=
metadata
->
data
.
encoding
.
bits_per_sample
;
stream_info
->
channels
=
metadata
->
data
.
encoding
.
channels
;
stream_info
->
sample_rate
=
metadata
->
data
.
encoding
.
sample_rate
;
if
(
metadata
->
type
==
FLAC__METADATA_TYPE_
STREAMINFO
)
{
assert
(
metadata
->
data
.
stream_info
.
total_samples
<
0x100000000
);
/* this plugin can only handle < 4 gigasamples */
stream_info
->
total_samples
=
(
unsigned
)(
metadata
->
data
.
stream_info
.
total_samples
&
0xffffffff
);
stream_info
->
bits_per_sample
=
metadata
->
data
.
stream_info
.
bits_per_sample
;
stream_info
->
channels
=
metadata
->
data
.
stream_info
.
channels
;
stream_info
->
sample_rate
=
metadata
->
data
.
stream_info
.
sample_rate
;
if
(
stream_info
->
bits_per_sample
!=
16
)
{
MessageBox
(
mod
.
hMainWindow
,
"ERROR: plugin can only handle 16-bit samples
\n
"
,
"ERROR: plugin can only handle 16-bit samples"
,
0
);
...
...
src/plugin_winamp3/in_flac.cpp
View file @
665b7ad5
...
...
@@ -361,12 +361,12 @@ void metadata_callback_(const FLAC__FileDecoder *decoder, const FLAC__StreamMeta
{
file_info_struct
*
file_info
=
(
file_info_struct
*
)
client_data
;
(
void
)
decoder
;
if
(
metadata
->
type
==
FLAC__METADATA_TYPE_
ENCODING
)
{
assert
(
metadata
->
data
.
encoding
.
total_samples
<
0x100000000
);
/* this plugin can only handle < 4 gigasamples */
file_info
->
total_samples
=
(
unsigned
)(
metadata
->
data
.
encoding
.
total_samples
&
0xffffffff
);
file_info
->
bits_per_sample
=
metadata
->
data
.
encoding
.
bits_per_sample
;
file_info
->
channels
=
metadata
->
data
.
encoding
.
channels
;
file_info
->
sample_rate
=
metadata
->
data
.
encoding
.
sample_rate
;
if
(
metadata
->
type
==
FLAC__METADATA_TYPE_
STREAMINFO
)
{
assert
(
metadata
->
data
.
stream_info
.
total_samples
<
0x100000000
);
/* this plugin can only handle < 4 gigasamples */
file_info
->
total_samples
=
(
unsigned
)(
metadata
->
data
.
stream_info
.
total_samples
&
0xffffffff
);
file_info
->
bits_per_sample
=
metadata
->
data
.
stream_info
.
bits_per_sample
;
file_info
->
channels
=
metadata
->
data
.
stream_info
.
channels
;
file_info
->
sample_rate
=
metadata
->
data
.
stream_info
.
sample_rate
;
if
(
file_info
->
bits_per_sample
!=
16
)
{
file_info
->
abort_flag
=
true
;
...
...
src/plugin_xmms/plugin.c
View file @
665b7ad5
...
...
@@ -465,12 +465,12 @@ void metadata_callback_(const FLAC__FileDecoder *decoder, const FLAC__StreamMeta
{
file_info_struct
*
file_info
=
(
file_info_struct
*
)
client_data
;
(
void
)
decoder
;
if
(
metadata
->
type
==
FLAC__METADATA_TYPE_
ENCODING
)
{
assert
(
metadata
->
data
.
encoding
.
total_samples
<
0x100000000
);
/* this plugin can only handle < 4 gigasamples */
file_info
->
total_samples
=
(
unsigned
)(
metadata
->
data
.
encoding
.
total_samples
&
0xffffffff
);
file_info
->
bits_per_sample
=
metadata
->
data
.
encoding
.
bits_per_sample
;
file_info
->
channels
=
metadata
->
data
.
encoding
.
channels
;
file_info
->
sample_rate
=
metadata
->
data
.
encoding
.
sample_rate
;
if
(
metadata
->
type
==
FLAC__METADATA_TYPE_
STREAMINFO
)
{
assert
(
metadata
->
data
.
stream_info
.
total_samples
<
0x100000000
);
/* this plugin can only handle < 4 gigasamples */
file_info
->
total_samples
=
(
unsigned
)(
metadata
->
data
.
stream_info
.
total_samples
&
0xffffffff
);
file_info
->
bits_per_sample
=
metadata
->
data
.
stream_info
.
bits_per_sample
;
file_info
->
channels
=
metadata
->
data
.
stream_info
.
channels
;
file_info
->
sample_rate
=
metadata
->
data
.
stream_info
.
sample_rate
;
if
(
file_info
->
bits_per_sample
!=
16
)
{
file_info
->
abort_flag
=
true
;
...
...
Write
Preview
Supports
Markdown
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