Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c56944cb
Commit
c56944cb
authored
Jun 13, 2004
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* coreaudio: Fix (not tested) for the no audio on A52 over SPDIF issue.
parent
053a3a7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/audio_output/coreaudio.c
modules/audio_output/coreaudio.c
+6
-7
No files found.
modules/audio_output/coreaudio.c
View file @
c56944cb
...
@@ -603,12 +603,12 @@ static OSStatus IOCallback( AudioDeviceID inDevice,
...
@@ -603,12 +603,12 @@ static OSStatus IOCallback( AudioDeviceID inDevice,
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
current_date
,
B_SPDI
);
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
current_date
,
B_SPDI
);
#undef B_SPDI
#undef B_SPDI
#define BUFFER outOutputData->mBuffers[ p_sys->i_stream_index ]
if
(
p_buffer
!=
NULL
)
if
(
p_buffer
!=
NULL
)
{
{
/* move data into output data buffer */
/* move data into output data buffer */
p_aout
->
p_vlc
->
pf_memcpy
(
outOutputData
->
mBuffers
[
p_sys
->
i_stream_index
].
mData
,
p_aout
->
p_vlc
->
pf_memcpy
(
BUFFER
.
mData
,
p_buffer
->
p_buffer
,
p_sys
->
i_bufframe_size
*
p_buffer
->
p_buffer
,
p_buffer
->
i_nb_bytes
);
p_sys
->
stream_format
.
mBytesPerFrame
);
aout_BufferFree
(
p_buffer
);
aout_BufferFree
(
p_buffer
);
}
}
...
@@ -618,7 +618,7 @@ static OSStatus IOCallback( AudioDeviceID inDevice,
...
@@ -618,7 +618,7 @@ static OSStatus IOCallback( AudioDeviceID inDevice,
{
{
UInt32
i
,
i_size
=
p_sys
->
i_bufframe_size
*
UInt32
i
,
i_size
=
p_sys
->
i_bufframe_size
*
p_sys
->
stream_format
.
mChannelsPerFrame
;
p_sys
->
stream_format
.
mChannelsPerFrame
;
float
*
p
=
(
float
*
)
outOutputData
->
mBuffers
[
p_sys
->
i_stream_index
]
.
mData
;
float
*
p
=
(
float
*
)
BUFFER
.
mData
;
for
(
i
=
0
;
i
<
i_size
;
i
++
)
for
(
i
=
0
;
i
<
i_size
;
i
++
)
{
{
...
@@ -627,11 +627,10 @@ static OSStatus IOCallback( AudioDeviceID inDevice,
...
@@ -627,11 +627,10 @@ static OSStatus IOCallback( AudioDeviceID inDevice,
}
}
else
else
{
{
memset
(
outOutputData
->
mBuffers
[
p_sys
->
i_stream_index
].
mData
,
p_aout
->
p_vlc
->
pf_memset
(
BUFFER
.
mData
,
0
,
BUFFER
.
mDataByteSize
);
0
,
p_sys
->
i_bufframe_size
*
p_sys
->
stream_format
.
mBytesPerFrame
);
}
}
}
}
#undef BUFFER
return
(
noErr
);
return
(
noErr
);
}
}
...
...
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