Quantcast
Viewing latest article 5
Browse Latest Browse All 6

microphone monitoring and sound playing at the same time

Hi

I am working on an application that plays sounds when you reach a certain amount of volume on your microphone (the player must blow into the microphone to a certain level).

To listen to the sound, i simply use the following: Ti.Media.startMicrophoneMonitor(); timermicro = setInterval(function(){ avg = Ti.Media.averageMicrophonePower; }, 200);

However, it seems that as soon as i create a sound with the command : Ti.Media.createSound({url:'sounds/mysound.mp3'}); the screen starts to freeze (the application doesn't crash, but it doesn't respond anymore)

If I create the sound first, the screen freezes the same way as soon as I start the microphone monitoring...

I tried to change the AUDIO_SESSION_MODE but it doesn't help with my problem...

Has anyone got an idea ?


Viewing latest article 5
Browse Latest Browse All 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>