audio-player

AudioGraph throws XAUDIO2_E_INVALID_CALL on second frame input node

久未见 提交于 2019-12-25 16:56:50
问题 I'm attempting to use the AudioGraph API of UWP to reproduce a mix of synthesised speech and short notification sounds ("earcons"). UWP has a speech synthesis API which gives me a stream containing a WAV file, but I don't want to make too many assumptions about the parameters (bit rate, sample depth, etc.) so the idea is to have an AudioSubmixNode and add AudioFrameInputNode s whenever there's some speech to reproduce. There's some complexity around queueing up separate utterances so that

Why does this audio session fail to recognise an interruption?

余生颓废 提交于 2019-12-25 08:48:29
问题 My app synthesises audio from a lookup table. It plays audio successfully but crashes the moment I try to stop playing. Audio playback only needs to exit without restarting so the requirements for handling the interruption are basic. I reread Apple’s Audio Session Programming Guide including the section Responding to Interruptions. However the method handleAudioSessionInterruption does not seem to register an interrupt so I’m obviously missing something. EDIT See my answer. When I began work

Splash Screen Activity - The element must be a direct child of the element [WrongManifestParent]

≯℡__Kan透↙ 提交于 2019-12-25 07:48:34
问题 I am using an open source android project called Timber & I've been trying to add a splash screen to it but am having no luck. How would I go about doing it? Here my AndroidManifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.technologx.blaze.player.pro" android:installLocation="auto"> <meta-data android:name="com.google.android.geo.API_KEY" android:value=

BigClip Won't Play .wav File

蹲街弑〆低调 提交于 2019-12-25 05:05:43
问题 I am attempting to add an audio player to my application. Here's the code from the class that handles audio playing: package me.pogostick29.audiorpg.audio; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled

BigClip Won't Play .wav File

蓝咒 提交于 2019-12-25 05:05:31
问题 I am attempting to add an audio player to my application. Here's the code from the class that handles audio playing: package me.pogostick29.audiorpg.audio; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled

Looping playback of a list of Gst.Sample with GstApp.AppSrc

浪子不回头ぞ 提交于 2019-12-25 04:52:05
问题 I'm trying to write a simple music player using GStreamer. I want to play any arbitrary music file ABS_FILE_PATH , store the samples for other purposes and later loop over these indefinitely, once the original end of stream is reached. Now playing the music works fine until short after the last sample of the track was played. Most of the time there's just silence, but sometimes there are one or two audible samples indicating, that the track just started playing again. The same holds for the

WP7 play audio classes [closed]

为君一笑 提交于 2019-12-25 03:22:47
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago . I read that Windows Phone 7 provides many classes for playing audio MediaElement SoundEffect MediaPlayer BackgroundAudioPlayer What are the differences among them ? What should I choose 回答1: MediaElement is a control that sits within the visual tree (which means you need to have

How to enqueue music to default android music player via app?

坚强是说给别人听的谎言 提交于 2019-12-24 05:31:30
问题 I am new to android app development, but I have good knowledge of programming in JAVA and in general. I am trying to write an app for android which can enqueue music files to default music player in android (like Google Play Music). My app decides which song to play when, but I don't want to write a full-blown music player app. I just want to feed the existing player app with new music. I am looking for something like "inter-app" communication (perhaps using Intent?) through which I can feed

App crash on headset button click

◇◆丶佛笑我妖孽 提交于 2019-12-23 19:42:02
问题 I have build an audioplayer which is deployed in android google playstore. I'm using crashlytics to monitor crashes and ANRs. Recently I have been getting a lot of crashes MediaButtonReceiver. The headset clicks work fine in many devices. But some devices are giving this problem. Crashlytics report - Fatal Exception: java.lang.RuntimeException: Unable to start receiver android.support.v4.media.session.MediaButtonReceiver: java.lang.IllegalStateException: Could not find any Service that

Convert shoutcast stream to playable samples in Python?

六眼飞鱼酱① 提交于 2019-12-23 17:43:46
问题 I have a shoutcat radio station and now want to build a player for it. I know how to "get" thet stream from the server, thanks a lot to bobince , but I am not sure how to convert that stream into playable samples. How is it done? 回答1: Well, from what I can read on python, try this page. If that doesn't work, try the PythonInMusic article on the python wiki. 回答2: Shoutcast streams are typically (but not always) MP3. To get playable samples, you have to decode the stream's MP3 data. Have you