Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e496d0ea
Commit
e496d0ea
authored
Mar 14, 2003
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/gui/macosx/aout.m: Added mono classification. Fixed channels
issue in InitDevice. Should close #490.
parent
ae1b0c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
modules/gui/macosx/aout.m
modules/gui/macosx/aout.m
+16
-10
No files found.
modules/gui/macosx/aout.m
View file @
e496d0ea
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* aout.m: CoreAudio output plugin
* aout.m: CoreAudio output plugin
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* Copyright (C) 2002-2003 VideoLAN
* $Id: aout.m,v 1.2
5 2003/03/14 00:06:02 massiot
Exp $
* $Id: aout.m,v 1.2
6 2003/03/14 01:08:38 jlj
Exp $
*
*
* Authors: Colin Delacroix
<colin
@
zoy
.
org
>
* Authors: Colin Delacroix
<colin
@
zoy
.
org
>
* Jon Lech Johansen
<jon-vl
@
nanocrew
.
net
>
* Jon Lech Johansen
<jon-vl
@
nanocrew
.
net
>
...
@@ -54,10 +54,7 @@
...
@@ -54,10 +54,7 @@
enum AudioDeviceClass
enum AudioDeviceClass
{
{
AudioDeviceClassA52 = 1
<
<
0
,
AudioDeviceClassA52 = 1
<
<
0
,
AudioDeviceClassPCM2 =
1
<<
1
,
AudioDeviceClassPCM =
1
<<
1
AudioDeviceClassPCM4 =
1
<<
2
,
AudioDeviceClassPCM6 =
1
<<
3
,
AudioDeviceClassPCM8 =
1
<<
4
};
};
static
struct
aout_class_t
static
struct
aout_class_t
...
@@ -83,31 +80,38 @@ aout_classes[] =
...
@@ -83,31 +80,38 @@ aout_classes[] =
"
Digital
A
/
52
"
"
Digital
A
/
52
"
},
},
{
kAudioFormatLinearPCM
,
1
,
AudioDeviceClassPCM
,
"
Mono
PCM
"
},
{
{
kAudioFormatLinearPCM
,
kAudioFormatLinearPCM
,
2
,
2
,
AudioDeviceClassPCM
2
,
AudioDeviceClassPCM
,
"
Stereo
PCM
"
"
Stereo
PCM
"
},
},
{
{
kAudioFormatLinearPCM
,
kAudioFormatLinearPCM
,
4
,
4
,
AudioDeviceClassPCM
4
,
AudioDeviceClassPCM
,
"
4
Channel
PCM
"
"
4
Channel
PCM
"
},
},
{
{
kAudioFormatLinearPCM
,
kAudioFormatLinearPCM
,
6
,
6
,
AudioDeviceClassPCM
6
,
AudioDeviceClassPCM
,
"
6
Channel
PCM
"
"
6
Channel
PCM
"
},
},
{
{
kAudioFormatLinearPCM
,
kAudioFormatLinearPCM
,
8
,
8
,
AudioDeviceClassPCM
8
,
AudioDeviceClassPCM
,
"
8
Channel
PCM
"
"
8
Channel
PCM
"
}
}
};
};
...
@@ -1127,8 +1131,10 @@ static int InitDevice( aout_instance_t * p_aout )
...
@@ -1127,8 +1131,10 @@ static int InitDevice( aout_instance_t * p_aout )
for( i = 0; i
<
I
_STREAMS
;
i
++
)
for( i = 0; i
<
I
_STREAMS
;
i
++
)
{
{
if
(
P_STREAMS[i].mFormatID =
=
if
(
P_STREAMS[i].mFormatID =
=
aout_classes
[
p_option-
>
i_cdx].mFormatID
&&
aout_classes
[
p_option-
>
i_cdx].mFormatID
&&
P_STREAMS[i].mChannelsPerFrame ==
aout_classes[p_option->i_cdx].mChannelsPerFrame
&&
P_STREAMS[i].mSampleRate == p_aout->output.output.i_rate )
P_STREAMS[i].mSampleRate == p_aout->output.output.i_rate )
{
{
b_found = VLC_TRUE;
b_found = VLC_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