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
030238bb
Commit
030238bb
authored
Oct 29, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio: removed variable "audioOpened"
This variable is never read, and can be removed.
parent
b9677020
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
audio.c
src/audio.c
+1
-9
No files found.
src/audio.c
View file @
030238bb
...
...
@@ -45,8 +45,6 @@ static unsigned int audioOutputArraySize;
*/
static
bool
*
audioDeviceStates
;
static
uint8_t
audioOpened
;
static
unsigned
int
audio_output_count
(
void
)
{
unsigned
int
nr
=
0
;
...
...
@@ -315,15 +313,11 @@ int openAudioDevice(const struct audio_format *audioFormat)
ret
=
0
;
}
if
(
ret
==
0
)
audioOpened
=
1
;
else
{
if
(
ret
!=
0
)
{
/* close all devices if there was an error */
for
(
i
=
0
;
i
<
audioOutputArraySize
;
++
i
)
{
audio_output_close
(
&
audioOutputArray
[
i
]);
}
audioOpened
=
0
;
}
return
ret
;
...
...
@@ -362,8 +356,6 @@ void closeAudioDevice(void)
for
(
i
=
0
;
i
<
audioOutputArraySize
;
++
i
)
audio_output_close
(
&
audioOutputArray
[
i
]);
audioOpened
=
0
;
}
void
sendMetadataToAudioDevice
(
const
struct
tag
*
tag
)
...
...
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