Checking If Windows Is Currently Playing Audio?
Dec 3, 2009
my program is designed to run on windows7. the mixer in the taskbar lets you control volumes per application. is their a way to determin if a specific application is playing a sound? if not, how would i go about checking to see if the system is currently outputting anysound.
my app is currently setup to use a speech to text and text to speech. basicly i want it to be able to wait for the text to speach software to stop talking before my app plays internal sounds (using the My.Computer.Audio.Play)
i don't have any code to provide as i have no idea where to start.
View 4 Replies
ADVERTISEMENT
Apr 22, 2009
I am creating a windows service that will do things behind the scenes without any GUI needed, thus the need for a Windows Service. The problem is though I would like to notify the user when certain events happen by playing a short audio clip. I know Windows Service's create a virtual Desktop, in which, Audio messages are not sent to the users Desktop.
View 3 Replies
Nov 9, 2011
I embeded many audio file (.wav) in resources. I can inluded the following code to play a audio file My.Computer.Audio.Play(My.Resources.testWav, AudioPlayMode.Background)
But this command play only one audio file(testWav) I have two questions
1) Is there any way to play all audio files no matter how many files in Resources included in VB 2005 without typing all embeded audio file name? (using something like For Next statement)
2) Can I pass parameter to My.Computer.Audio.Play( , ), which means that when I choose one of files embeded in Resource, I just pass the chosen audio file to this command not specific file name(like testWav.wav)
View 10 Replies
Jan 28, 2009
I'm new to VB and have over the last week or two been looking at the different ways to play audio (mp3's). Windows Media Player, Microsoft Multimedia Control, Bass.dll, SndPlaySound, MCI SendString and DirectX (including audiovideoplayback, direct3d and directsound.) I originally decided to use windows mediaplayer, mainly because it seemed the logical choice but quickly found out I couldn't get it to work properly.
So I installed the Directx SDK but now I'm completely overwhelmed about what to use and why. I need to be able run the compiled code on a win 2k box, play an mp3 from start to finish then load and play another mp3 from start to finish and so on. Whats the difference between the varied choices and which would be the best for me to use?
View 5 Replies
Sep 27, 2010
Based on a thread earlier today, and in particular an answer that Cor gave wherein he
pointed to this article, I thought that I'd do some investigation. Many times here the question has come up about playing .mp3 audio files and NOT using the Windows Media Player object. In the article referenced above, he shows how this can be done via DirectX.
I've looked at DirectX before and it seemed ambiguous so I never really dug into it but it turns out to be pretty simple actually! I thought that I'd write this as a step-by-step of what I did so that maybe some of you will find use from it. The whole thing stems around using DirectX and to begin with, you'll need to download and install the SDK for it. If you haven't already,
try this link. Do be aware that it's a large download (about a half gig)! Once that's installed, create a form and add a reference to the class that we need for this. You can do this several ways, but the way I usually do is to right-click on the name in the Solution Explorer, then choose "Add Reference":
[Code]...
View 9 Replies
Oct 9, 2011
I am developing a video player with WPF.(in VB)I have already created a MediaElement ,ListBox, "Next" button, then start playing through reading ListBox,and use "Next" to skip to next audio/video.In "MediaEnded" event, i just copy all code in "Next" button.Now, problem is coming,
Assume the Listbox has four audios(.mp3), "test1.mp3", "test2.mp3", ......
now playing is "test1.mp3", i push "Next" button, then now playing is "test2.mp3".
However, when i just let "test1.mp3" play completed, my player will not play "test2.mp3",
[code].....
View 1 Replies
Jan 29, 2009
I am working on an application in VB.net (.NET 2.0) where I need to open a dynamic amount of different audio streams. Normally, for audio files, one would suggest importing the Windows Media Player COM reference and adding a GUI-based element from the toolbox, but since I'll be working with a dynamic amount of these a GUI would be a terrible idea (especially with Tab stops).
View 4 Replies
Apr 15, 2010
I want to create a audio player class but having some problems like when audio is finished it is not repeating. While playing audio some UI controls are not working.
View 1 Replies
Nov 12, 2010
Right now I'm trying to make an alarm clock program.I know my coding is correct and I'm not geting errors. Also my sound is a .Wav and was properly inserted into the resources folder. I was wondering if there is just some dumb setting that needs to be changed or if I'm forgeting something in the code.[code]...
View 4 Replies
Oct 15, 2011
[code]So basically the combobox1 item which is selected is sent to a string and is then supposed to be played from my resources. The .wav file which is in my resources is named "Sound1" however I have no idea how to reference it.
View 1 Replies
Jul 5, 2011
I want to do a software for blind user. How to play audio while menustrip submenu item highlight (without using mouse hover)?
View 1 Replies
Dec 6, 2009
I'm working on a program that allows a person to click on some text and it will read the text (play a wav file) using My.Computer.Audio.Play. The program calls a procedure called PlayAudioClip which uses AudioPlayMode.WaitToComplete because in some cases two wav files will be played one after the other(two languages). During the playing of the wav files I want to show a visible indicator that there is audio. I've got a picturebox called "AudioPic" who's image property points to a picture in my.resources. THe visible property of AudioPic is set to false when the form loads When the user clicks on the text my program should display the image (Visible=true), play the clip (or two) and then hide it again.
It seems that the picture is not completely loaded before the wav file plays and since I have it set to WaitToComplete it stops the loading until the wav file has played, at which time the program hides it.
How can I force it to finish showing the picture before playing the clip?[code]...
View 4 Replies
Sep 15, 2009
So I have a wav playing using DirectX in VB6. If i switch to another window, it stops playing. If I click back on the VB6 window it resumes play. How do I make it continue playing when I change windows? Another problem I cannot load wav files larger than 50 megabyte. It says Out Of Memory. How can I increase that?
View 1 Replies
Nov 14, 2011
I'm playing an audio file like so:
VB.NET Dim audio As New Audio(Application.StartupPath & "est.wav", True) audio.Balance = 10000 audio.Play()
Which works great. But if I need to change that file, I get an UnauthorizedException because the I haven't disposed of it. But, if I add a dispose after .Play, it won't play.
View 2 Replies
Mar 6, 2009
[code] I am programming a simple alarm clock and the loop never ends the clock stops counting seconds, and I can not click any button as the form seems to be frozen
View 2 Replies
Jan 28, 2010
I'm developing a standslone system for my school project. I'm developing an audio management system which allow user to add audio files itself into database together with the audio information such as artist name and album year. I just started it few days ago and face some problems.. my song in the playlist wont continue to play after 1 finished and i need some idea on how to store the audio files into database ... in blob types may be?
Heres the screenshot and codes
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_add.Click
[CODE]............................
View 2 Replies
Sep 11, 2009
I want to have a applacation then wehen somthing happens (like, uhh a error message but without the message box.) what would be the code that plays the windows alert sounds, and one that applies to the current sound scheme i have running.
View 1 Replies
Dec 27, 2011
I am trying to find a way to accurately verify if a Windows 7 machine is currently using an active license and activated. I believe I can initiate a 'cmd.exe' command to run a cscript (slmgr) and parse that information but that seems like an inefficient method.I have came across an unmanaged windows API called SLGetGenuineInformation [url] however I am not familiar with how to call this in VB.NET or what the variable types should be. I believe VB6 came with some sort of APIViewer that Visual STudio 2010 does not seem to contain.
View 2 Replies
Aug 17, 2010
I'm looking to see if anyone has a good reference for a third-party add-in that will allow me to play .mp4 video files inside my program without a need to embed a web browser in my program.
I have no problem buying it (well that depends on the cost of course!), but I want that when I distribute it, I include their .dll files and it'll work on the user's computer without anything else needed.
View 5 Replies
Jun 18, 2010
I'm developing a VB.NET Windows service which is costantly checking a BMS database for new alarms and making phone calls to warn operators remotely. I'm currently using a .NET TAPI wrapper and the SAPI 5.3 interop assembly, and the steps I'm taking to speak over the phone are:
Initialize TAPI interface;Make the call to the operator's number;Take the voice modem waveOut device id Set the voice output to that device id; Let SAPI do the magic. This is all working fine if I compile the code as a Windows console or forms application, but as soon as I compile and run it as a Windows Service, step 5 never occurs - voice modem calls but stays silent; everything else works, even digit monitoring.Now I know windows services are not supposed to interact with the desktop, so things like UI elements and playing sounds are a no-no, but I'm struggling to find an alternative which doesn't involve using the wave API and can be developed in a reasonable timeframe.
View 2 Replies
Apr 20, 2012
Been doing VB2010 for about a year now, have recently started to push the boundary's for what kind of media I can incorporate into my forms. I haven't been able to play .wav or .mp3 files though. I have tried to follow tutorials on microsoft and other coding websites without success.
View 1 Replies
Apr 13, 2011
VB.NET Visual Studios 2010 or 2008 only!I have searched like crazy and can't find how to get the wmp current playing song Title, Artist and Album names.
I would like to later bring this to Post to Facebook and Twitter ONLY when that button is clicked.
I have already tried things like this: (From the internet)
Dim zArtist As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Artist")
Dim zTrackTitle As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Title")
Dim zAlbum As String = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.getItemInfo("Album")
View 9 Replies
Aug 25, 2010
I have been trying to tweak the form and all of a sudden it doesn't show anymore. I have tried reversing all the settings back to original but nothing. Then I have tried:
[Code]...
View 3 Replies
Dec 19, 2011
I am planning to create a proprietary Windows application that will let the user capture video and audio from any other Windows application and stream it onto another computer via Internet. Capturing video is easy, I could simply let the user browse all open windows (or applications) and have the user click the prefered one. But what about audio? Is it possible in Windows to capture the audio from any application?
View 4 Replies
Dec 19, 2009
I have got some code and after some slight modiications now works fully for what i need - but only on XP.
However, my problem is when the software is run on Vista. My software doesn't seem to be able to control any of the Mixer Lines it's supposed to, but will randomly change the Mute/Volume level setting on the 'Application Audio' setting in the Mixer. Can anybody point me in the right direction to change settings on a Vista machine? My Module is attached below. To use in a form you must use the line: modMixer.OpenMixer() prior to any further commands. For example:
1. modMixer.OpenMixer()
2. modMixer.MuteLineInVolume = True
View 2 Replies
Sep 3, 2009
So I'm a bit new to the whole Vista/7 audio setup. My understanding is that a new "mixer" is created for each application. Is there some new .Net function which interfaces with these mixers? I'm actually trying to create an application which can adjust the MAIN system volume level as well as the mute function.
I was looking at the Endpointvolume API however I cant get it to work for me :(. Does anyone have a vb.net demo of how to harness this API?
View 2 Replies
Apr 8, 2010
I have my forms all set up, I want a button on my main form that says Volume. When clicked it either opens a window above the current form with a volume control. Or opens another form that has the volume control in the center. When the slider is moved up to 100% windows is at 100% volume, when moved down windows volume moves down also.
View 3 Replies
Mar 16, 2011
I am attempting to play a set of audio files continuously using a tree view. I am having troubles looping through an array to play one song after another in the selected parent node. It seems to work if I only use one song in the array but it doesn't want to actually loop through and keep playing; it goes through the loop but once the first song is over it stops. I am unsure if looping through an array in the AfterSelect sub routine is the best way of doing this,
Here is the entire Sub routine for the AfterSelect on the tree view.trvMain is the name of the entire tree view.wmpMain is the Windows Media Player COM.trvJazzHancock is the parent node for the two audio files I'm attempting to loop.
[Code]...
View 2 Replies
Oct 11, 2009
I'm writing a program which plays audio using a windows media player control. It's quite basic but I'm running into a problem.
Soundplayer.Ctlcontrols.play()
Sleep(3000)
For some reason when this appears in my code, the sound doesn't start playing until AFTER the sleep. I have music running in the background, using another windows media player control, that continues playing just fine.
Basically, I want nothing else to happen for the duration of the sound, hence the sleep, so how can I make it so my sound starts playing BEFORE the sleep?
View 7 Replies
Mar 13, 2009
I just want to ask or I need some idea on how to convert wav files to mp3 and compressed the file to make the size smaller. I've search on the internet and find vorbis.dll as a reference object and lame.exe for converter. With regards to the audio compression, i downloaded monkey's audio software but doesnt have an idea on how to incorporate it.
View 2 Replies