Audio Causing Imagery Movement To Stagger?

May 28, 2009

i'm working on something like a slot machine reel spinning with images on it.I've constructed a long image, dynamically, and have that image now stored in memory.I'm able to simulate that image "spinning" nicely by moving it vertically within a panel, and having it repeat. This is taking place in a separate "timer" function.

This seems to move quite smoothly until (on some machines) I output a bit of audio. I'm using the format:

My.Computer.Audio.Play(SoundFile3, AudioPlayMode.Background)

The SoundFile3 is simply a physical path to an audio file.When I call this function for the audio, and when it's not a powerhorse pc, it disrupts the spinning, and the spinning acts a little crazy/random.

Is there a more efficient approach for audio, like storing it in memory ahead of time?I'm tempted to go the multi-thrad approach to try to get the option of multiple sounds at the same time, but I don't know ifthat will help or hurt the situation. And I don't know how that's done.

View 1 Replies


ADVERTISEMENT

Audio Management System - Allow User To Add Audio Files Itself Into Database Together With Audio Information

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

Incorporating Networked DVR Imagery Into Forms Application

Feb 18, 2012

I'm working on a windows forms application and would like to incorporate a feature that would allow me to pull the video stream from a networked DVR source. I have an existing desktop program that I may be able to use to snoop out some of the protocols used, but I have absolutely no idea where to look for a library or api to actually display the video.

Has anyone successfully done this? (Connected to a remote DVR, played realtime video in their own application)

View 5 Replies

Audio Converter And Compressor - Audio & Video - Dream.In.Code

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

VS 2008 Recording Audio - Capture The Audio Played On My Laptop

Jun 11, 2009

Im 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

Make A VU Meter For Audio To Monitor Audio Input?

Feb 26, 2007

make a VU meter for Audio to monitor audio input devices volume level such as microphone and etc?

View 7 Replies

Routing Modem Audio Out To SR Engine Audio Input Under VB / VBA?

May 20, 2009

I have a database application developed around Access with VBA,I have used the Speech SDK and developed an application that in conjunction with MSCOMM 6.0 library calls into a remote IVR system.It sends in the credentials and queries information in response to that IVR's verbal requests. All seems successfull except for one problem;I'm using a shared SR engine and its using the system microphone as its audio input, this in turn gets the sound from the speakers which are routed to the telephone line through the modem. Of course this has a number of disadvantages - noise added to the sound from the environment and sound quality degredation as well as speaker volume dependency.

I would like the SR engine to take its audio input from the modem in paralell with the sound that goes to the speakers (so we can listen in to the call as well). This means that I must route the system audio output to the SR engine audio input. It seems that I must use an InProc SR instance - however in VBA that type is not recognized - since the shared SR uses the microphone as input by default. there is some statement to the effect that it is difficult in Microsoft's Help file. I'm unable to set the SR audio input to the modem output stream in VBA.As needed I can accomplish the C++ interface using an ActiveX object or a DLL to expose the missing API to VBA?

View 7 Replies

Play Audio After The Previous Audio

Sep 23, 2009

how can i play the audio after the previous audio play is finish by using directx.

assume i have audio1.wav and audio2.wav.

i play audio1.wav by this code.

audio1 = audio.fromfile("D:audio1.wav", false)

how can i play audio2.wav after audio1.wav is finish? without use any button or signal. just depends on when the audio1.wav is finish, then audio2.wav will play automatically.

View 4 Replies

Changing The Cursor Movement?

Jul 15, 2011

Using VB on a graphics screen I want to have the cursor move on a grid as opposed to every pixel. I believe I must hide the cursor and then draw it myself over the background, but I do not understand how to do this.

View 9 Replies

Device Detects Movement?

Feb 26, 2011

Im working with my project. I have a device called PIR (Passive Infrared Resistor), capable of detecting any kinds of movement. When the device reached the maximum limit of movementthe red light will turn on. The output of my device is -5v. I want my program to respond when my device detects movement

View 2 Replies

Get VB To Detect Mouse Movement?

Nov 21, 2006

how to get VB to detect mouse movement, clicks and keyboard presses. I am creating a screensaver program that does not intergrate with the windows screensaver.

The reason I am doing this is because I am trying to invent a screensaver that people can use their custome pictures to see with password protection for their PC when the screensaver facility has been disabled on a domain.

View 7 Replies

Joystick Movement Display

Jun 18, 2012

When I plug in the USB joystick, I'll have to go to the control panel and select game controllers. I click on the properties and a pop-up is displayed. On the top left hand corner of it, there's this small square 'picture' with a plus sign at the middle indicating the joysticks' movement. As I moved up, the sign moves up as well and as I move down it does too. It depicts the movements of the joystick in use.

I was wondering how to code the exact same thing as I'm planning to place the square thingy in a 'question' image which will change after every submitted answer of the image using the joystick.

View 2 Replies

Restrict Movement Of Mouse?

Nov 22, 2010

I have a picturebox (X=1200,Y=800) and there is an area in the picturebox starting at (X=32,Y=32 and is 256x256 in size). I want to keep the mouse pointer in that area for awhile.

Is there a command in vb that lets you do this? If not, can you restrict the mouse to one control?

View 6 Replies

Tracking Mouse Movement In VB?

Mar 11, 2010

i need the code for tracking the mouse movement in VB 2008. my program needs to make a pop-up window when the mouse have moven an inch ( ex.)

View 12 Replies

VS 2005 Choppy Movement In GDI?

May 1, 2009

I have 22 30x30 shapes(players) moving around a simulated football field. This is the culmination of 2 years of basement hobby work and it looks pretty good except for some choppy movement. With 11 shapes moving around it really looks good, but doubling the load causes the flicker to be noticeable.I have double-buffered the control that does the drawin

View 6 Replies

Adding Random Movement In While Loop?

Apr 29, 2009

I've made a program where a picture of a bee buzzes around the form in random movements (using random number generator code) and have put it in a while loop so that whilst the bee is visible on the form (hasn't flown off the sides) it moves randomly:

While (picBee.Top > 0 And picBee.Top < 725) And (picBee.Left > 0 And Timer1.Enabled = True)
Application.DoEvents()
For i = 1 To 3000000
Next
picBee.Top = picBee.Top - 2 + 4 * Rnd()
picBee.Left = picBee.Left - 2 + 4 * Rnd()
End While

So far the bee does stop moving when it meets one of the four edges of the form but I need to code it so when the be reaches the edges and stops a message box appears declaring the game over.

View 3 Replies

Disallowing StatusStrip Movement At Runtime?

Sep 17, 2009

I have a StatusStrip at the bottom of the Form. When i run the form I am able to drag it and move it towards the top. So the StatusStrip just disappears. I dont want the user to be able to MOVE the strip. How do I do that ??

View 3 Replies

End The Program On Any Keystroke Or Mouse Movement?

Feb 18, 2009

I've got a very simple screen saver program that displays alot of stuff in pictureboxes and labels...dynamic display. I want to end the program on any keystroke or mouse movement. I've placed the statement "me.close()" in Public Sub Form1_KeyDown routine (Form1/Events). Nothing happens when I type though. I've seached the forums.....keypreview is true....

View 1 Replies

Game Programming :: Picture Box Movement Bug?

Dec 30, 2009

Ok, so I'm making a simple breakout game, using picture boxes as I didn't want to bother installing picture boxes.Every movement works perfectly fine; the pad moves correctly, the ball bounces right. Except when I move the pad while the ball is moving.If I move the pad while the ball is moving, the ball moves at the same speed as the pad, which is 10 times the speed of the ball.Well here's the movement code.

Code:
Public Sub Movement(ByVal Movement As String) ' Handles movement
If Not IsPlaying Then Exit Sub

[code]......

View 2 Replies

Mouse Movement In Specific Window?

Jun 15, 2010

if its possible to have mouse events like mouse movements, mouse clicks and so on in a specific window only. I'm not sure if you understand this so ill give you an example.

Okay lets say i want this program to only click within a window like Firefox or windows media player only. So that means if i minimize the window it will still click inside that window while its minimized, and i could continue doing other things while its clicking inside that window.

View 3 Replies

Movement Stops Once Collision Detected?

Jun 11, 2010

So, I am just trying to get the snake to move after it collides with the picture box. Right now, the snake is moved by using the arrow keys. However, once it collides with "the food", it won't move.

Imports System
Imports System.Drawing
Imports System.Drawing.Graphics

[Code]......

View 1 Replies

Rapid Mouse Movement By User

Jul 9, 2011

The code I have is meant to be used during possible rapid mouse movement by the user. It is supposed to get the current location (works), move to specified location (works), mouse down(works), mouse up (works), then return the mouse to the old position. I added the delay because it seemed that it was having trouble registering the click if done too quickly. The problem I am having is that if the user is moving their mouse during the time the code is activated, their movement can throw the location of the mouse down or mouse up events off even with the added check routine I added.

'Get current mouse position
Dim MousePosX As Integer = Windows.Forms.Cursor.Position.X
Dim MousePosY As Integer = Windows.Forms.Cursor.Position.Y
Q = True
'Move mouse to Q Location and click
[Code] .....

View 8 Replies

Record Mouse Movement In Form?

Oct 18, 2009

i want to save location of Form Where mouse Move or Hover and its save in Two Listboxes like :

Listbox1 contain Width
&
Listbox2 contain Height

Basicaly i want to record mouse Moving. i m using Listboxes to save location

View 5 Replies

Use HEX Code In VB For Mouse Movement To Use Coordinates Only?

Jul 14, 2009

Mouse coordinates in Internet Explorer? Also, how do I use HEX code in VB for mouse movement or do you HAVE to use coordinates only?

View 2 Replies

VS 2008 - Any Way To Reverse Mouse Movement?

Feb 15, 2010

I am want to play a prank on my friend by reversing the movement of the mouse. Like if the user moves the mouse, on the monitor, it will go in the opposite direction.
User - - -Monitor
UP------Down
Left-----Right
Right-----Left
Down-----Up

View 2 Replies

VS 2010 : Cursor Movement In Datagridview?

Feb 28, 2012

Is it possible to move my cursor in the right cell of datagridview when i press the enter key. By default it moves in the next row.

View 1 Replies

VS 2010 Chess Piece Movement

Sep 17, 2011

In an attempt to try and make a chess AI I started working on a chess project. The AI will basically be in a class that implements my AI interface. To provide flexibility this can be used for a human player or a computer AI. In any case the problem I'm having is calculating the valid moves that a single piece can have.I calculate on what blocks the piece would be able to move if the board was totally empty. (this is represented by a array of point)Then I get a list of piece locations of the same team and Except that from said list.(since pieces can move through other pieces of its team)Now here is the tricky bit obviously taking an enemy piece is a legal move I can't just subtract enemy piece positions. Lets say there are 2 black pawns and a white rook in the same column. The rook would be able to take the first black pawn but not the second one because the first pawn is in it's way. In reality there would never be such an easy example so I need a way to only include the enemy positions "In the line of sight" of the piece's moves i'm calculating.

View 11 Replies

Buffers To Increase Movement, Lower Quality?

May 23, 2010

is there any buffers i can use to make my animations look smoother rather than the quality of the pictures?

View 3 Replies

Creating Auto-Repeated Mouse Movement

May 8, 2010

how to create a Auto repeated Mouse movement.I wanna create a Form, with a button "start 01" and "start 02",so if I click on "start 01" button, and i open my other applications, and once I hit the F1 button (on my keyboard) the mouse will auto move from point A to B, and it will keep on repeat until I hit the F12 button, then it will stop auto moving.and if I click on the "start 02" button, and II open my other applications, and once I hit F1 button (on my keyboard) the mouse will now move from D to E, and it will keep on repeating it until I hit the F12 button, then it will stop auto moving.

View 8 Replies

Detect Presses Of Buttons And Movement Of Joysticks

Jun 21, 2010

I have an Xbox 360 wireless controller connected on my PC and need to detect the presses of the buttons and movement of the joysticks.... and have no idea how to do it.

View 2 Replies







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