Playing Audio While MenuStrip Items Highlighted
Jul 5, 2011I want to do a software for blind user. How to play audio while menustrip submenu item highlight (without using mouse hover)?
View 1 RepliesI want to do a software for blind user. How to play audio while menustrip submenu item highlight (without using mouse hover)?
View 1 RepliesHow to play audio while menustrip submenu item highlighted (without using mouse hover)?
View 3 RepliesI 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)
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?
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]...
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.
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].....
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 RepliesI 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 RepliesRight 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[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 RepliesI'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]...
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 RepliesI 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 RepliesI'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.
[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 RepliesI have code that i wish to run every time an item is highlighted in a listbox, or that highlighted item changs to a different item in the same list.
Atm, i am using 'Handles lbDiscoveredDevices2.SelectedIndexChanged' where lbDiscoveredDevices2 is my listbox. I dont think this is right as if i click any blank area in the list...it runs the code, and trys to refer to highlighted items, that arnt highlighted = error.
I'm using VB2008. In the IDE, menustrip text items to show the underbar for ALT key use are preceded by ampersand. The underbar displays on the form [design] tab while in the edit mode but does not show when program run in debug mode from the IDE.
View 2 Repliesi have managed to add menu strip items and add a Click Handler to it fine But now i am going to remove the click handler, and want to add sub items in the menu instead the current code i have so far..
[Code]...
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]............................
I somehow lost a MenuStrip & StatusStrip from my form. Now I have all these MenuStrip items in the dropdown box of my properties window & I can't seem to delete them.
View 3 RepliesI have a DB table with the names of my Menus and a User names. After a User is logging succesfully I go through the table with the Menuitem names and enable /disable the menuitems accordingly.
Can anybody kindly show me a workaround on how to do this. For example i have this table below and after succesfully loging in as username "aaaaa". Menustrip items with name accounts and finance should be enabled and the rest like billing will be disable.
Table Name
UserAndMenu
[code]....
each of the ToolStripMenuItems has more than 20 ChildItems and each of these ChildItems have more than 30 ChildItems.In my form I havea login form and each user must log in.I want to know that how can I check my UserAccess Table with these MenuItems and ChildItems names and if the user does not have the MenuItem or ChildItem name in UserAccess Table, the MenuItem or ChildItem must be disabled.
View 16 RepliesI have on my form load to add items to a menu as a dropdown item.from within the same sub I try to output the menustrip dropdown items in a msgbox but I get a blank response for all my items.
Private Sub PopulateLoadChildMenu()
msItemLoad.DropDownItems.Clear()
Dim fi As FileInfo
[code].....
I have my program set up to read the contents of a Directory, and then populate a drop down menu with the names of the files in the directory. (I am using the MenuStrip). Inside my program, it is also set up to create a new file in that directory, and I wish to add this item to the dropdown menu upon creation. The list is entirely created and populated from the code, and the contents of the list depend entirely on what's in the directory.
I have tried using MenuStrip.Items.Remove(menuItem1). Now, when this command gets executed, it does remove the top level Menu, however when I go to repopulate the menu, I end up with duplicates of my files listed in the drop down. I am stuck with how to clear these out as well?
When i drag the menuStrip control onto my form and use SmartTag to insert standard items , i get only menu Items no Icons .. VB 2008 Express edition
View 7 RepliesLet's say I have a menustrip, which has a category "Colors" for example, and in that category there is an option of 20 colors, but I want only 1 to be checked at any one time, now to do that with what I know, I'd have to check every other one of the check boxes and uncheck them in every single click event, is there no cleaner way to do this?
View 5 RepliesI want a menu with just two dropdown lists, the menustrip puts a strip right across the form, is there any way to change the width of the strip? Changing in properties does not work. Is there a different type of menu I can use?
View 12 RepliesI 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 RepliesIm trying to capture the audio played on my laptop. so i have searched the internet and found a source code for doing exactly that. the problem i have is that my audio device is not listed in the dropdown box (see picture) but it does when its run on windows xp (im running windows 7 x64) the goal of this application would be to capture my friends radio stream and save the individual played mp3's to a loction on my hard drive.(yes i have permission) i have included the source code so perhaps some 1 could have a look at it. (source code)[URL]
View 2 Replies