VS 2008 Play Sound Files That Are Located In Folder On Computer's Desktop?

Feb 13, 2011

In my application I play sound files that are located in a folder on my computer's desktop.

Const sSoundFolder = "C:UsersChrisDesktopSound"

Now that I'm ready to deploy my app, I want to reference all the audio files so others can hear them in the application.

I read how to reference them... but what I don't know:

Do I have to change the above code to some sort of reference folder in my application instead of my desktop?

View 3 Replies


ADVERTISEMENT

Game Programming :: Sound Files - Use .exe On Another Computer It Doesn't Play Because It Does Not Recognize .wav Location

Jan 17, 2010

To programming and have a question with sound files. I am trying to figure out the basics and here is what I did: I created a button that is supposed to play a sound.

My.Computer.Audio.Play("C:.......file.wav")

When I click this button in my .exe file it obviously plays because I am using the computer with the above location for the .wav file. When I use the .exe on another computer it doesn't play because it does not recognize that .wav location. How do I make this work for me? Do I need to embed the .wav with my .exe somehow?

View 4 Replies

Reads & Writes Data From An MSAccess Database Located On A Desktop Computer?

Oct 4, 2010

I should create a program for a Pocket PC that reads & writes data from an MSAccess database located on a desktop computer (pocket PC and desktop one are connected through a Wi-Fi connection).Is that possible?

View 3 Replies

How To Play Sound Files In Desired Order According To Text Inputed In Txtbox?

Feb 26, 2010

i got the following things:

-A button (called "btnplayvoice")
-A textbox(multi-line enabled, called "txtinput")
-Some *.wav audio files in my "resources" (2 of them called "A.wav" and "B.wav", of course there are still some more sound files in my resources xD)Note: the button and the txtbox are in the same form.

i want to make a program with this feature:When I type "B A"(note between "B" and "A" has a space)into txtinput, then i click the btnplayvoice, it will look up and check the resources and see if the wav file exists there, if yes, it will play the related(same as inputed) sound files one by one in correct order. That mean in this case I should hear "B.wav -> A.wav" in this order.

View 8 Replies

My.computer.audio : Get It To Play Other Files Besides Just .wav, Like .mp3. Wave Files?

Sep 13, 2008

how can i get it to play other files besides just .wav, like .mp3. wave files are way too large to be used easily if you want a good quality. why cant i play .mp3 files with it?when i convert a 2.1 mb mp3 file to .wav it turns out to be 36 mb?any other ways besides computer.audio to play audio files on command?

View 1 Replies

Using Sound Files But Not Having To Change Drive Name On New Computer?

Apr 18, 2012

I am using sound files in my project it is saved to my usb so when I use another computer I have to chang the location of the sound file I was wondering if there is a way so that when my project is put in to use the sound file location dose not have to be changed I mean is there a way to save it in to the prohere is my code

Private Sub frmplay_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
My.Computer.Audio.Play("F:\computer science\comp4\comp4\bin\song1.wav")

[code].....

View 4 Replies

Play Another Sound (like A Beep) When Desired Without Stopping The Background Sound?

Apr 19, 2009

I have background sound loop with the My.Computer.Audio and it works fine. I want to play another sound (like a beep) when desired without stopping the background sound. Several examples I have found don't seem to work. I am in VB.NET 2008 Professional.

View 8 Replies

Play A Sound File In .net 2008?

Jan 25, 2010

I want my program to play sounds when an object is hovered, but I don't know how to code it.

View 1 Replies

Play/pause Mp3 Anad Wav Sound In VB 2008?

Jul 23, 2009

how to play/pause mp3 anad wav sound in visual basic 2008?

View 1 Replies

VS 2008 : Application To Get Any Sound Playing From Pc And Play It?

Dec 6, 2009

Is their a way for my application to get any sound playing from my pc and play it?

View 6 Replies

Play Music Files [mp3s] In The Same Folder With The App?

Oct 14, 2011

I already have a code to play music files in the same folder with the app..

I just wondering if you have any other ideas aside from the code below.

If System.Diagnostics.Debugger.IsAttached() Then
'Debugging mode
resourceFilePath = System.IO.Path.GetFullPath(Application.StartupPath & "")

[Code]....

View 1 Replies

VS 2008 View Images Located In The Main App Folder

May 18, 2011

I have this code that opens a pdf file within a program files folder: AxAcroPDF1.src="(C:program filesCPI414 MAP.pdf") and I want to change the location to my app folder like: AxAcroPDF1.src="(app folder414 MAP.pdf") how should I write it correctly?

View 2 Replies

Move All Text Files To A Created Folder On The Desktop?

Jun 9, 2011

I want to create a program that I can create a Text file folder on my desktop and move all the text files into the folder.

Here is what I have so far:

Below is where I create the Text folder:
Dim myPath As String = IO.Path.Combine(My.Computer.FileSystem.SpecialDirectories.Desktop, "Text")

[Code].....

View 5 Replies

Build A Small Program Which Will Allow Some One To Click On The Exit Button And The Sound Will Play And At The End Of The Sound The Program Will Then Close?

Apr 17, 2009

I am trying to build a small program which will allow some one to click on the exit button and the sound will play and at the end of the sound the program will then close. The sound clip is about 3 seconds long Here is what I have:

Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectSound
Public Class Form1
Private Dsound As CSoundDevice

[code]....

View 14 Replies

VS 2008 Obtain CRC32 Checksum Of Files Within A Folder Then Rename Files And Folder

Mar 4, 2010

in the current project im making i've decided to add in some tools, 1 of which is a renamer based of a renamer app that already exists (called scdtoolz), i want to build my own version of it so i can learn some new things, and build a nice GUI version of it.[code]So what i have managed to determine is that the current app scans the folders contents for the CRC32 Checksum, and renames based of that, since the 456.bin's CRC32 Checksum was 2274F80B, and in the text file 2274F80B is found here 'WWF - Rage in the Cage (T-81015)(U)#2274F80B#'So now i have determined game identification is based of the CRC32 checksums, how would i go about coding a similar ap in vb.net?first i need to make the app scan a folder, but how to return crcchecksum? and then rename if check = XXXX? If MD4 sums are easier/simpler i can use those instead, im lookin at a few hash app sources now, so i think i can see how to get the md5 but not the crc32 yet, or how to rename the 2 files and folder based of the text file.

View 6 Replies

VS 2008 : Desktop Icons Are Created In Some Computer While Not In Others?

Mar 21, 2012

I am having a problem I have created a program which will create Shortcuts by using CLSID. (Edd Bott say God Mode)The problem is it runs fine on some computer but in other it did not work fine.

View 5 Replies

VS 2008 Desktop Icons Are Created In Some Computer While Not In Others

Jan 11, 2010

I am having a problem I have created a program which will create Shortcuts by using CLSID. (Edd Bott say God Mode) The problem is it runs fine on some computer but in other it did not work fine.

View 1 Replies

Run A Vb Exe File Located In Another Computer?

Nov 23, 2010

Is it possible that i can run a vb6 exe file located in another computer using my vb.net program? how?

View 4 Replies

VS 2008 - Share Files From A Computer To A Computer That Are Connected In?

Dec 21, 2009

How do you share files from one computer to another that are connected in one wireless internet connection? I mean, it's possible using shared folders this means it could be possible in vb.net too..

View 1 Replies

VB - Desktop Computer With Cable Connection On Back Allows To Watch TV On Computer Using Windows Media Center

Jun 12, 2010

I have a desktop computer with a cable connection on the back that allows me to watch TV on the computer using Windows Media Center. I had the idea of writing a program that would access this feed and send it to another computer (laptop) via my network. That way I would be able to watch TV from anywhere that my network spans. I have no idea if this is possible or how I would even do it,

So I have three questions.
1: Is it possible?
2: How would I go about access the feed?
3: How would I send it over the network?

My original thought was doing it in Flash, but I'm not very good at Flash so I wanted to do it in VB.Net.

View 2 Replies

VS 2008 Why Can't Create Folder On Desktop By VB

Jan 10, 2010

I don't know what went wrong, but I am not able to create a folder using the following code

My.Computer.FileSystem.CreateDirectory(Environ("%UserProfile%") & "Desktopabc")

View 5 Replies

Play A Sound In OpenAL?

Apr 29, 2012

I'm using OpenTK to get OpenAL lib.I'm using OpenAL to play multiple wav files at a time(or so i want).Do you know any tutorial/source code in .Net (VB/C# doesn't matter) that could help me use OpenAL to play multiple files?

View 4 Replies

Animation When Play A Sound

Dec 20, 2009

i have designed my owm mp3 player . and now i want to add a sound visuvalizer in my program . but i dont now how can i do this? how can i find sound Frequence?

View 1 Replies

Play A Sound In Vb Express?

Jan 15, 2010

How Can I Play A Sound In Vb Express?

View 2 Replies

Play A Sound On Start

May 17, 2009

I want to play a sound on start. I imported my sound.vb, added m.wav as a resource. changed m.wav to embedded resource. but it wont work??? Just to check my code i made a new project, used the same code, and it worked fine.

[Code]....

View 2 Replies

Play Sound With MciSnedString?

Jul 4, 2009

I'm trying to play audio files (.mp3, .wav whatever it is) with mciSendString function but it's not working. Here's my codes

//// here is the api
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer

[Code]....

View 8 Replies

VS 2005 Play More Than One Sound At Once

Jun 4, 2010

How can I play more than one sound at a time? I have a song that I want to play and a sound effect, but when I play one it stops the other. They are both dimmed as two seperate media.soundplayer and they are both pulled from the same reference folder and they are two seperate files. How could I do this?

View 3 Replies

Way To Play Background Sound

Mar 4, 2010

I have a Command1 and when I click it, I want a sound to be played.

[code]...

View 14 Replies

How To Play Sound UNTIL Hardware Input

Jun 16, 2009

I have a need to play a continous tone, say 1000 Hz, until the user responds. I'm aware of the following:

'Sound Player...plays wave files.
Dim sp as New SoundPlayer
sp.SoundLocation = <MyWave.wav>
sp.Play

[Code]...

View 2 Replies

Play All Sound Formats In Program?

Jul 2, 2009

I want to play all sound formats in visual basic

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved