Click here to Skip to main content
16,005,037 members
Home / Discussions / C#
   

C#

 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Colin Angus Mackay14-Jul-05 21:09
Colin Angus Mackay14-Jul-05 21:09 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Colin Angus Mackay14-Jul-05 21:11
Colin Angus Mackay14-Jul-05 21:11 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Expert Coming14-Jul-05 21:13
Expert Coming14-Jul-05 21:13 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Dave Kreskowiak15-Jul-05 1:50
mveDave Kreskowiak15-Jul-05 1:50 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
DavidNohejl15-Jul-05 1:57
DavidNohejl15-Jul-05 1:57 
GeneralRe: .EXE.Config File Getting Deleted after every Build/Rebuild -- Strange Syndrome Pin
Vasudevan Deepak Kumar15-Jul-05 0:53
Vasudevan Deepak Kumar15-Jul-05 0:53 
GeneralDo not allow to delete folder using Set up and Deployment for desktop application Pin
ksanju100014-Jul-05 19:53
ksanju100014-Jul-05 19:53 
GeneralPlaying Sound Clips Pin
Charlie Tame14-Jul-05 19:08
Charlie Tame14-Jul-05 19:08 
Best to explain the system I have and the requirements first.

MS Visual Studio 2003.net and something called "Softwire" which is best explained at www.softwire.com by viewing the examples. Not a spam, you need to know this to understand the question, besides it's freeware. I am not at all experienced with C# or VB but learning a bit as I go along and Softwire is the only way I got up and running at all.

I have the hardware working courtesy of Softwire and what I need to do is make an announcement every time a digital input fires. 48 inputs, 48 possible different sounds.

What I have running (again using Softwire) is a little program that does the input stuff, picks a filename from a text file and then sends that filename to Mplayer2.exe as a parameter. I have also found some code to play .wav files using a form but here's the first part of the question.

There's no sense re-inventing the wheel and Mplayer2 behaves like this. If Mplayer2 is already open and provided the filename exists the filename is passed to the same instance of Mplayer2. If the filename doesn't exist a new instance opens, but that should never happen so I don't really care about that. However there's no parameter I can find that passes both filename and volume setting, and I want some messages louder than others and ideally I want this setting in the play list and not made at record time.

SO switch to the code on the form which I borrowed and modified from some kind person here. With that (Directsound) I certainly can supply a .wav file and a volume as two parameters, but every one opens a new instance so that won't fly at all in the target environment. I have also found some code to deal with the single instance issue which I think (Note I THINK) I can probably incorporate in this so I wind up with an executable that can take [filename] [volume] parameters, but for the sake of getting things up and running quicker can anyone tell me if I have missed something with Mplayer2 because the present system does work well except for the volume.

(Note I do NOT want to use media library or anything fancy - text file to filenames is perfect for this application).

Thanks in anticipation for any suggestions, I have looked around a lot but I figure that just maybe someone here will have gone down this path before Smile | :)

The "Perfect" answer is to write a system that can deal with the announcement volume and also the system volume controls - and also run without a user being logged in - but if you saw my level of expertise with c# you'd assume that won;t be anytime this week Smile | :) .

Once again thanks for any ideas, always appreciated.

Charlie
GeneralRe: Playing Sound Clips Pin
Expert Coming14-Jul-05 20:18
Expert Coming14-Jul-05 20:18 
Generalsocket problem Pin
snouto14-Jul-05 19:03
snouto14-Jul-05 19:03 
GeneralRe: socket problem Pin
felopater15-Jul-05 1:45
felopater15-Jul-05 1:45 
GeneralRe: socket problem Pin
Zishan Haider15-Jul-05 4:11
Zishan Haider15-Jul-05 4:11 
GeneralRe: socket problem Pin
leppie15-Jul-05 5:55
leppie15-Jul-05 5:55 
GeneralRe: socket problem Pin
felopater15-Jul-05 9:23
felopater15-Jul-05 9:23 
General.socket problem Pin
snouto14-Jul-05 19:02
snouto14-Jul-05 19:02 
Generalcreating and adding namespaces to your project library Pin
Agyeman14-Jul-05 18:34
Agyeman14-Jul-05 18:34 
GeneralRe: creating and adding namespaces to your project library Pin
Dave Kreskowiak15-Jul-05 3:58
mveDave Kreskowiak15-Jul-05 3:58 
GeneralNavigation... Pin
lovelylooney14-Jul-05 16:42
lovelylooney14-Jul-05 16:42 
GeneralRe: Navigation... Pin
Christian Graus14-Jul-05 17:19
protectorChristian Graus14-Jul-05 17:19 
GeneralRe: Navigation... Pin
lovelylooney14-Jul-05 17:43
lovelylooney14-Jul-05 17:43 
GeneralRe: Navigation... Pin
Christian Graus14-Jul-05 17:55
protectorChristian Graus14-Jul-05 17:55 
GeneralRe: Navigation... Pin
lovelylooney14-Jul-05 18:13
lovelylooney14-Jul-05 18:13 
GeneralRe: Navigation... Pin
oleman10814-Jul-05 18:38
oleman10814-Jul-05 18:38 
GeneralRe: Navigation... Pin
lovelylooney14-Jul-05 20:18
lovelylooney14-Jul-05 20:18 
GeneralRe: Navigation... Pin
oleman10815-Jul-05 0:18
oleman10815-Jul-05 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.