Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
66ca1775
Commit
66ca1775
authored
Apr 01, 2011
by
Simon Morlat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.linphone.org/mediastreamer2
parents
b7f504e7
a93ef32f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
macsnd.c
src/macsnd.c
+17
-12
No files found.
src/macsnd.c
View file @
66ca1775
...
...
@@ -67,19 +67,20 @@ MSFilter *ms_au_write_new(MSSndCard *card);
static
void
show_format
(
const
char
*
name
,
AudioStreamBasicDescription
*
deviceFormat
)
{
ms_
message
(
"Format for %s"
,
name
);
ms_
message
(
"mSampleRate = %g"
,
deviceFormat
->
mSampleRate
);
ms_
debug
(
"Format for %s"
,
name
);
ms_
debug
(
"mSampleRate = %g"
,
deviceFormat
->
mSampleRate
);
unsigned
int
fcc
=
ntohl
(
deviceFormat
->
mFormatID
);
char
outName
[
5
];
memcpy
(
outName
,
&
fcc
,
4
);
outName
[
4
]
=
0
;
ms_message
(
"mFormatID = %s"
,
outName
);
ms_message
(
"mFormatFlags = %08lX"
,
deviceFormat
->
mFormatFlags
);
ms_message
(
"mBytesPerPacket = %ld"
,
deviceFormat
->
mBytesPerPacket
);
ms_message
(
"mFramesPerPacket = %ld"
,
deviceFormat
->
mFramesPerPacket
);
ms_message
(
"mChannelsPerFrame = %ld"
,
deviceFormat
->
mChannelsPerFrame
);
ms_message
(
"mBytesPerFrame = %ld"
,
deviceFormat
->
mBytesPerFrame
);
ms_message
(
"mBitsPerChannel = %ld"
,
deviceFormat
->
mBitsPerChannel
);
ms_debug
(
"mFormatID = %s"
,
outName
);
ms_debug
(
"mFormatFlags = %08lX"
,
deviceFormat
->
mFormatFlags
);
ms_debug
(
"mBytesPerPacket = %ld"
,
deviceFormat
->
mBytesPerPacket
);
ms_debug
(
"mFramesPerPacket = %ld"
,
deviceFormat
->
mFramesPerPacket
);
ms_debug
(
"mChannelsPerFrame = %ld"
,
deviceFormat
->
mChannelsPerFrame
);
ms_debug
(
"mBytesPerFrame = %ld"
,
deviceFormat
->
mBytesPerFrame
);
ms_debug
(
"mBitsPerChannel = %ld"
,
deviceFormat
->
mBitsPerChannel
);
ms_message
(
"Format for [%s] rate [%g] channels [%ld]"
,
name
,
deviceFormat
->
mSampleRate
,
deviceFormat
->
mChannelsPerFrame
);
}
...
...
@@ -269,14 +270,18 @@ static void au_card_detect(MSSndCardManager * m)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
MSSndCard
*
card
;
char
uidname
[
256
]
=
{
0
},
devname
[
256
]
=
{
0
};
int
card_capacity
=
0
;
if
(
check_card_capability
(
devices
[
i
],
FALSE
,
devname
,
uidname
,
sizeof
(
uidname
))){
card
=
ca_card_new
(
devname
,
uidname
,
devices
[
i
],
MS_SND_CARD_CAP_PLAYBACK
);
ms_snd_card_manager_add_card
(
m
,
card
);
card_capacity
|=
MS_SND_CARD_CAP_PLAYBACK
;
}
if
(
check_card_capability
(
devices
[
i
],
TRUE
,
devname
,
uidname
,
sizeof
(
uidname
))){
card
=
ca_card_new
(
devname
,
uidname
,
devices
[
i
],
MS_SND_CARD_CAP_CAPTURE
);
card_capacity
|=
MS_SND_CARD_CAP_CAPTURE
;
}
if
(
card_capacity
)
{
card
=
ca_card_new
(
devname
,
uidname
,
devices
[
i
],
card_capacity
);
ms_snd_card_manager_add_card
(
m
,
card
);
}
}
}
...
...
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