Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
88a0e2d7
Commit
88a0e2d7
authored
Apr 27, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiounit: cast OSStatus correctly for debug output
parent
626062e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
modules/audio_output/audiounit_ios.c
modules/audio_output/audiounit_ios.c
+10
-9
No files found.
modules/audio_output/audiounit_ios.c
View file @
88a0e2d7
...
@@ -182,7 +182,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
...
@@ -182,7 +182,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
status
=
AudioComponentInstanceNew
(
p_sys
->
au_component
,
&
p_sys
->
au_unit
);
status
=
AudioComponentInstanceNew
(
p_sys
->
au_component
,
&
p_sys
->
au_unit
);
if
(
status
!=
noErr
)
{
if
(
status
!=
noErr
)
{
msg_Warn
(
p_aout
,
"we cannot open our audio component (%
li)"
,
status
);
msg_Warn
(
p_aout
,
"we cannot open our audio component (%
i)"
,
(
int
)
status
);
return
false
;
return
false
;
}
}
...
@@ -194,7 +194,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
...
@@ -194,7 +194,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
&
flag
,
&
flag
,
sizeof
(
flag
));
sizeof
(
flag
));
if
(
status
!=
noErr
)
if
(
status
!=
noErr
)
msg_Warn
(
p_aout
,
"failed to set IO mode (%
li)"
,
status
);
msg_Warn
(
p_aout
,
"failed to set IO mode (%
i)"
,
(
int
)
status
);
/* Get the current format */
/* Get the current format */
AudioStreamBasicDescription
streamDescription
;
AudioStreamBasicDescription
streamDescription
;
...
@@ -220,7 +220,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
...
@@ -220,7 +220,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
&
streamDescription
,
&
streamDescription
,
i_param_size
);
i_param_size
);
if
(
status
!=
noErr
)
{
if
(
status
!=
noErr
)
{
msg_Err
(
p_aout
,
"failed to set stream format (%
li)"
,
status
);
msg_Err
(
p_aout
,
"failed to set stream format (%
i)"
,
(
int
)
status
);
return
false
;
return
false
;
}
}
msg_Dbg
(
p_aout
,
STREAM_FORMAT_MSG
(
"we set the AU format: "
,
streamDescription
));
msg_Dbg
(
p_aout
,
STREAM_FORMAT_MSG
(
"we set the AU format: "
,
streamDescription
));
...
@@ -233,7 +233,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
...
@@ -233,7 +233,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
&
streamDescription
,
&
streamDescription
,
&
i_param_size
);
&
i_param_size
);
if
(
status
!=
noErr
)
if
(
status
!=
noErr
)
msg_Warn
(
p_aout
,
"failed to verify stream format (%
li)"
,
status
);
msg_Warn
(
p_aout
,
"failed to verify stream format (%
i)"
,
(
int
)
status
);
msg_Dbg
(
p_aout
,
STREAM_FORMAT_MSG
(
"the actual set AU format is "
,
streamDescription
));
msg_Dbg
(
p_aout
,
STREAM_FORMAT_MSG
(
"the actual set AU format is "
,
streamDescription
));
/* Do the last VLC aout setups */
/* Do the last VLC aout setups */
...
@@ -248,14 +248,14 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
...
@@ -248,14 +248,14 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
kAudioUnitScope_Input
,
kAudioUnitScope_Input
,
0
,
&
callback
,
sizeof
(
callback
));
0
,
&
callback
,
sizeof
(
callback
));
if
(
status
!=
noErr
)
{
if
(
status
!=
noErr
)
{
msg_Err
(
p_aout
,
"render callback setup failed (%
li)"
,
status
);
msg_Err
(
p_aout
,
"render callback setup failed (%
i)"
,
(
int
)
status
);
return
false
;
return
false
;
}
}
/* AU init */
/* AU init */
status
=
AudioUnitInitialize
(
p_sys
->
au_unit
);
status
=
AudioUnitInitialize
(
p_sys
->
au_unit
);
if
(
status
!=
noErr
)
{
if
(
status
!=
noErr
)
{
msg_Err
(
p_aout
,
"failed to init AudioUnit (%
li)"
,
status
);
msg_Err
(
p_aout
,
"failed to init AudioUnit (%
i)"
,
(
int
)
status
);
return
false
;
return
false
;
}
}
...
@@ -273,8 +273,9 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
...
@@ -273,8 +273,9 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
AudioSessionSetProperty
(
kAudioSessionProperty_AudioCategory
,
sizeof
(
sessionCategory
),
&
sessionCategory
);
AudioSessionSetProperty
(
kAudioSessionProperty_AudioCategory
,
sizeof
(
sessionCategory
),
&
sessionCategory
);
AudioSessionSetActive
(
true
);
AudioSessionSetActive
(
true
);
/* start the unit */
status
=
AudioOutputUnitStart
(
p_sys
->
au_unit
);
status
=
AudioOutputUnitStart
(
p_sys
->
au_unit
);
msg_Dbg
(
p_aout
,
"audio output unit started: %
li"
,
status
);
msg_Dbg
(
p_aout
,
"audio output unit started: %
i"
,
(
int
)
status
);
return
true
;
return
true
;
}
}
...
@@ -289,11 +290,11 @@ static void Stop(audio_output_t *p_aout)
...
@@ -289,11 +290,11 @@ static void Stop(audio_output_t *p_aout)
if
(
p_sys
->
au_unit
)
{
if
(
p_sys
->
au_unit
)
{
status
=
AudioOutputUnitStop
(
p_sys
->
au_unit
);
status
=
AudioOutputUnitStop
(
p_sys
->
au_unit
);
if
(
status
!=
noErr
)
if
(
status
!=
noErr
)
msg_Warn
(
p_aout
,
"failed to stop AudioUnit (%
li)"
,
status
);
msg_Warn
(
p_aout
,
"failed to stop AudioUnit (%
i)"
,
(
int
)
status
);
status
=
AudioComponentInstanceDispose
(
p_sys
->
au_unit
);
status
=
AudioComponentInstanceDispose
(
p_sys
->
au_unit
);
if
(
status
!=
noErr
)
if
(
status
!=
noErr
)
msg_Warn
(
p_aout
,
"failed to dispose Audio Component instance (%
li)"
,
status
);
msg_Warn
(
p_aout
,
"failed to dispose Audio Component instance (%
i)"
,
(
int
)
status
);
}
}
p_sys
->
i_bytes_per_sample
=
0
;
p_sys
->
i_bytes_per_sample
=
0
;
...
...
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