Sithz

Hello everyone.

I need some help desperately.

I have made a program for a game, that takes screen shoots when a certain sound file is accessed (watching last access time). Now this have worked flawless for long time, until there was an update for this game.

Now the program works only for those that have a dual core computer, there it works 100%.
But for regular computers, the program will only take a screen shoot the 1 time the sound is accessed and then it seems that the file not get accessed any more, like the game stores the sound in memory or something. But as I said, it works for dual core computers (very confusing).

Now I would be screaming of happiness if someone can explain why this is, sounds to weird to me.

I thought maybe I can change my program in some way, to recognize what sound is active / playing. Don't know if this is possible.

What I was thinking is: My program will somehow pick up every sound that is active on the computer and then if this certain file is played, it would trigger the event to take a screen shoot.

I would appreciate any help you can give me, if it's an explanation to why my program suddenly only works on dual cores or if you have a solution to "know" what file is played.

Thank you.
/Sithz


Re: Visual C# General Recognize a sound

OmegaMan

Sound processing is an interesting field...is this program in C# As to why the other program changed or why yours does not work, could be many factors...maybe your application has a lower priority and is just not catching the sound...but we don't know how you are catching the sound Maybe the sound is being caught, but it doesn't match the pattern you expect....the possibilities are endless...





Re: Visual C# General Recognize a sound

Sithz

Hi.

This is my problem:

My software watches a sound file for last access, but after first access Windows seems to be storing the file in RAM and will run it from there the next time it's needed. So my software will not see any file access attempts, because Windows uses the stored RAM version and not the file.

After some time, it seems that the sound file gets released from RAM and i get a notification on file read again.

So is there anyway to check that this file is being played / accessed from RAM or can I release this file from RAM somehow

And yes program is made in C#

Thank you for replaying.