Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
57a9e560
Commit
57a9e560
authored
Feb 25, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvp: removed big_endian parameter from mvp_set_pcm_params()
Don't pass the big_endian flag to mvp_set_pcm_params(), do a simple "G_BYTE_ORDER==G_LITTLE_ENDIAN" instead.
parent
d9024653
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
+3
-16
mvp_plugin.c
src/output/mvp_plugin.c
+3
-16
No files found.
src/output/mvp_plugin.c
View file @
57a9e560
...
...
@@ -34,12 +34,6 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "mvp"
#if G_BYTE_ORDER == G_BIG_ENDIAN
#define MVP_USE_LITTLE_ENDIAN false
#else
#define MVP_USE_LITTLE_ENDIAN true
#endif
typedef
struct
{
unsigned
long
dsp_status
;
unsigned
long
stream_decode_type
;
...
...
@@ -126,7 +120,7 @@ mvp_output_finish(void *data)
static
int
mvp_set_pcm_params
(
struct
mvp_data
*
md
,
unsigned
long
rate
,
int
channels
,
int
big_endian
,
unsigned
bits
)
unsigned
bits
)
{
unsigned
iloop
;
unsigned
mix
[
5
];
...
...
@@ -147,13 +141,7 @@ mvp_set_pcm_params(struct mvp_data *md, unsigned long rate, int channels,
return
-
1
;
mix
[
3
]
=
0
;
/* stream type? */
if
(
big_endian
==
1
)
mix
[
4
]
=
1
;
else
if
(
big_endian
==
0
)
mix
[
4
]
=
0
;
else
return
-
1
;
mix
[
4
]
=
G_BYTE_ORDER
==
G_LITTLE_ENDIAN
;
/*
* if there is an exact match for the frequency, use it.
...
...
@@ -223,8 +211,7 @@ mvp_output_open(void *data, struct audio_format *audio_format)
return
false
;
}
mvp_set_pcm_params
(
md
,
audio_format
->
sample_rate
,
audio_format
->
channels
,
MVP_USE_LITTLE_ENDIAN
,
audio_format
->
bits
);
audio_format
->
channels
,
audio_format
->
bits
);
md
->
audio_format
=
*
audio_format
;
return
true
;
}
...
...
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