audio-player

How to play a sound in NETCore?

偶尔善良 提交于 2019-12-04 00:34:26
问题 I'm trying to play a sound inside a .Net Core console application and I can't figure this out. I am looking for something managed inside the .Net Core environment, maybe like regular .Net : // Not working on .Net Core System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav"); player.Play(); Found an issue on dotnet core Github where they talk about it. https://github.com/dotnet/core/issues/74 They say there is no high-level API for audio playback but the issue is 9

Android Studio music player cant read from sdcard, only internal memory

与世无争的帅哥 提交于 2019-12-03 20:08:28
I apologize if this turns out to be a stupid question, it might turn out as a quick fix but I just cant figure it out. I'm building a music player in android studio and none of the songs on the sdcard dont show up in the list view, only the ones in internal memory, even though I did implement getExternalStorageDirectory() and added the permission in the manifest file. Any input on this or constructive criticism is greatly apreciated. Here is the main java class. public class MainActivity extends AppCompatActivity { ListView lv; String[] items; @Override protected void onCreate(Bundle

Which API should I use for playing audio on Windows? [closed]

本秂侑毒 提交于 2019-12-03 13:53:13
There are many ways of playing sounds on Windows. Which are the differences, advantages and disavantages of each method? I know there are at least 5 methods: 1991 WinMM.dll/mmsys.dll PlaySound 1995 MCIWnd (as suggested by @casablanca) 1996 DirectSound 1998 WaveOut 1999 ASIO 1999 Windows Media Player ActiveX control? 2005 WASAPI (which is used by XAudio2 - as suggested by @Han) 2007 XAudio2 Really depends on what you want to do. For most common scenarios, I've found that the MCIWnd functions work well: they're really easy to use and can play any format for which a codec is installed.

Audio song mixer in android programmatically

霸气de小男生 提交于 2019-12-03 04:42:41
问题 I want to create an audio mixer (DJ music track) kind of app which can create Dj mixer of an audio song. User can select a music song track that can be mixed with two or more separate rhythm, bass or beat tracks to create a new modified Dj music. I did a lot of research over this but could not find any idea or clue. If anyone have some idea or some reference URL regarding this, please share it. 回答1: There is no build-in library on Android that supports audio mixing (combining two audio input

iPhone progressive download audio player [closed]

别来无恙 提交于 2019-12-03 01:08:53
I'm trying to implement a progressive download audio player for the iPhone, using http and fixed size mp3-files. I found the AudioStreamer project but it seems very complicated and works best with endless streams. I need to be able to find out the total length of audio files and I also need to be able to seek in the files. I found a hacked deviation from AudioStreamer but it doesn't seem to work very well for me. http://www.saygoodnight.com/?p=14 I'm wondering if there is a simpler way to achieve my goals or if there are some better working samples out there? I found the bass library but not

VideoView with Gesture(Swipe function) in android

∥☆過路亽.° 提交于 2019-12-02 18:55:53
I want to combine default VideoView and gesture listener , I want to implement likewise on VideoView if user swipe left then song plays backward or swipe right then song plays forward. open default media player via following code : Intent intent = new Intent("android.intent.action.MUSIC_PLAYER"); startActivity(intent); then how to add gesture listener ..?? i got that how to combine VideoView and GestureListener : layout file activity_main.xml : <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android

Use .setDataSource to get mediaMetadata from currently playing music app

主宰稳场 提交于 2019-12-02 13:43:23
问题 I want to get MediaMetadata (song title / artist) from the current playing android audio source for any app (spotify, google play, soundcloud, YouTube, blackplayer, etc) and am trying to use MediaMetadataRetriever.setDatSource Currently I have a function 'getActiveNotifications' in 'MainActivity.java' that gets called whenever a button is pressed, my code looks like this: public void getActiveNotifications(View view) { String temp ="temp"; Log.i("myTag", "Logging active notifications:"); /

Use .setDataSource to get mediaMetadata from currently playing music app

為{幸葍}努か 提交于 2019-12-02 08:28:48
I want to get MediaMetadata (song title / artist) from the current playing android audio source for any app (spotify, google play, soundcloud, YouTube, blackplayer, etc) and am trying to use MediaMetadataRetriever.setDatSource Currently I have a function 'getActiveNotifications' in 'MainActivity.java' that gets called whenever a button is pressed, my code looks like this: public void getActiveNotifications(View view) { String temp ="temp"; Log.i("myTag", "Logging active notifications:"); //get data from MediaMetaData somehow? Always displays correct string in Logcat MediaMetadataRetriever mmr

how to know when audio is started playing in android

拥有回忆 提交于 2019-12-02 00:27:17
问题 In my application I want to get start time of music player when user started and end time when it stops.I don't want to start any music player in my app. I just want to track user activity in device. So i want my application to get any notification when user started the music . Do I get any intent for music player started and it stopped.Or do I get any intent for when user opens music files. Is there any other method other than intent to capture the start time and and time when user starts

how to know when audio is started playing in android

痞子三分冷 提交于 2019-12-01 21:24:36
In my application I want to get start time of music player when user started and end time when it stops.I don't want to start any music player in my app. I just want to track user activity in device. So i want my application to get any notification when user started the music . Do I get any intent for music player started and it stopped.Or do I get any intent for when user opens music files. Is there any other method other than intent to capture the start time and and time when user starts music player. Well you can implement the interface 'AudioManager.OnAudioFocusChangeListener' in which