Commit 1f37bb14 authored by Mickaël Turnel's avatar Mickaël Turnel

Add a stream type for MEDIA in android

parent cd49716a
......@@ -131,7 +131,8 @@ typedef struct _MSSndCard MSSndCard;
enum _MSSndCardStreamType{
MS_SND_CARD_STREAM_VOICE,
MS_SND_CARD_STREAM_RING
MS_SND_CARD_STREAM_RING,
MS_SND_CARD_STREAM_MEDIA
};
/**
......
......@@ -189,6 +189,8 @@ struct AndroidSndWriteData{
stype = AUDIO_STREAM_VOICE_CALL;
if (type == MS_SND_CARD_STREAM_RING) {
stype = AUDIO_STREAM_RING;
} else if (type == MS_SND_CARD_STREAM_MEDIA) {
stype = AUDIO_STREAM_MUSIC;
}
}
void setCard(AndroidNativeSndCardData *card){
......
......@@ -164,6 +164,8 @@ struct OpenSLESOutputContext {
streamType = SL_ANDROID_STREAM_VOICE;
if (type == MS_SND_CARD_STREAM_RING) {
streamType = SL_ANDROID_STREAM_RING;
} else if (type == MS_SND_CARD_STREAM_MEDIA) {
streamType = SL_ANDROID_STREAM_MEDIA;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment