hi all,
i have my expo project bare with expo 37.0.0
my easy code:
const soundObject = new Audio.Sound();
try {
await soundObject.loadAsync(require('./assets/audio/alarm_1.mp3'));
await soundObject.stopAsync();
await soundObject.playAsync();
// Your sound is playing!
} catch (error) {
console.log(error)
}
npm run android and dont play nothing…
some time i have this error:
[Error: com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed: 0, Config(44100, 12, 70880)]