Playing Non PCM Wavs

Oct 15, 2010

I have the following code in my project: [code]The problem is, when I click the button, if the wav is not PCM I get the error: "Sound API only supports playing PCM wave files".This is fine but I want to play all wavs, mp3s and other types of files in my project. I read about using Flash but the only one example I found was for C#. My project is in vb.net. Is there no way to do this in vb.net? I absolutely do not want a player to appear in my application.

View 2 Replies


ADVERTISEMENT

Directsound - How To Play Wavs

Sep 6, 2011

i am new to directsound. I was wondering if someone could point to a resource that explains how to load wav files and play them using directsound. I found one webpage that explains how to load wavs and play them but you load them by clicking a button and searching a window for the file; what I need is programmatic loading. I can't use simpler methods to play the wavs because I need multiple sounds playing at once and very fast execution times. If it isn't too difficult, perhaps someone could post some code.

View 4 Replies

Get Media Playing Now Playing Using Sendmessege / Wmp.dll?

Jan 22, 2010

How I can get the Media playing now playing using Sendmessege or wmp.dll?

View 5 Replies

MD5 Not Playing Nicely With PHP MD5()?

Feb 15, 2012

I have been trying now for about 4 hours to get my vb.NET MD5 function to generate the same hash as PHP's This is my vb.net function:

Public Function MD5(ByVal input As String) As String
Dim x As New System.Security.Cryptography.MD5CryptoServiceProvider()
Dim bs As Byte() = System.Text.Encoding.UTF8.GetBytes(input)
bs = x.ComputeHash(bs)

[code]....

However, the hashing of some wtrings ("paSsword1" for example) work perfectly fine.Any ideas why? I have tried multiple methods of MD5 in vb.net. I can;t change the way it works in PHP because I'm writing a library to interface with a commercial application - I just need the hashes to be generated the same!

View 1 Replies

Playing .mp3's From Resources?

Mar 12, 2010

I'm trying to simply play a .mp3 file from my resources in my AxWindowsMediaPlayer. It works fine, up until I publish the project and try to run it. Then the player activates, says "Opening media", then "Ready", and then proceeds to do nothing. I'm using Visual Basic Express Edition 2008.

If
System.Diagnostics.Debugger.IsAttached() Then
ResourceFilePath = System.IO.Path.GetFullPath(Application.StartupPath &

[code]....

View 1 Replies

Playing A PLS File?

Jul 23, 2009

Is it possible to download a pls file and play it? it's basically streaming music, and I need to know if I can develop a way to play it through an application.

View 3 Replies

Playing Animations One After Other

Oct 16, 2011

I'm trying to make a sort of 2D turn based battle system using GDI+. I'm calling the animation through a Game loop, the animation itself works fine however I have found that both animations play at the same time. I was wondering if anyone could tell me a way around this or a way to fix it?

View 6 Replies

Playing MP3 (without Library)

Apr 12, 2010

I have decided that I want to learn a bit about sound and how it works so I thought that I would make an application that reads and plays MP3 files. I know that this will be very difficult and that I will be re-inventing the wheel, but it's all for the educational purpose. So my questions are; How does it work, how does Windows Media Player plays the data from the MP3 file? How can I, with the data provided in the MP3 file, know what to play, how it should sound? Which method would I have to approach to play the sound provided in the file? If you think that I have too little knowledge on the subject

View 4 Replies

Playing OGG And Wav Byte?

Oct 30, 2011

How i can play Byte OGG and Byte Wav from buffered byte?for example, There are one file contain some data and 1 wav file, the size of wav stored in offset 30 and wav sound started in offset 35, I buffer the byte like this:

[Code]...

View 8 Replies

Playing Videos On VB?

Sep 24, 2009

I want to play a video on a VB form but not sure how to go about it All I want is to play a video that takes up the whole form and make a button that plays it

View 3 Replies

Playing With Bat File And Exe

Jul 19, 2009

i need to decrypt a file by calling an exe.when i call this i need to supply password to that exe how can i supply the password programtically [code]this is what iam using to decript that file named V4933001.txt when i use this code a command promt will be poped up there i need to supply password.but i need to supply that password programatically

View 2 Replies

Audio Playing In VB 2005?

Nov 9, 2011

I 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)

View 10 Replies

Check What Track Is Currently Playing?

Oct 29, 2010

I need a function for my new project, the application I'm making for the PC is going to communicate with a PIC through USB. The problem I'm having is that I can't find a way for my .NET application to get the song that is currently playing like MSN can. I've been searching alot all over google but all I get is "how to play music in vb.net" and that is not what I'm looking for.

View 1 Replies

Create A Tic Tac Toe Against The Computer - Playing Twice

Nov 24, 2009

I am trying to create a Tic Tac Toe against the computer. The problem is the computer is playing twice and kinda stupid.

Public Class Form1

Dim turn As Integer
Dim computer As Integer

[CODE]...

View 14 Replies

Different Ways For Playing Audio (MP3)?

Jan 28, 2009

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?

View 5 Replies

Get Current Playing Music

Mar 7, 2012

Is it possible to get the currently playing song. For example I am trying to make an app that will get the current song playing and get more info about that song. My problem is I am not sure how to do this as I want this to work in any music playing program not just in windows media player

View 4 Replies

Playing A Mp3 File What Is In The Resources?

Jan 8, 2008

i need the code for playing a mp3 file what is in the resources. i don't have a clue of where to start. i've tried so many times but i always get an error.

View 12 Replies

Playing A Wav Too Fast Messes Up?

Dec 12, 2011

I'm recreating an old 16 bit game. I'm creating the chat normally displayed at the bottom.Each sentence transitions in character-by-character.Every time a character is added, I wanted to have it make that little bleep noise. I've got a wav file that contains a short 'blip' that sounds just right, problem is, when I have it do the blip every time, it usually messes up.

View 1 Replies

Playing MP3 Audio Files (And Not Using WMP)

Sep 27, 2010

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]...

View 9 Replies

Playing MP3 Files From The Internet?

Jun 21, 2010

I want to play MP3 Files directly from the internet. I don't want to use other applications, like WMP, just my application.

I have a file that contains the list of the playable files: listoftracks.ini that contains:

hxxp://....../example.mp3

hxxp://....../example2.mp3

I wrote hXXp instead of http to disable links - in the files, they are http

Public Function Listen()
My.Computer.Network.DownloadFile("..../listoftracks.ini", Application.StartupPath & "/listoftracks.ini")

[Code]....

View 5 Replies

Playing One .wav File Without Stopping The Other

Nov 29, 2007

I'm currently programming a music software which plays notes which are listed. as timer ticks, the notes change and so it plays a different *.wav file. The problem now is that the previous sounds stops when a new sound starts. i want them to overlap each other until each one has finished. Code: my.computer.audio.play("file.wav")

View 30 Replies

Playing Sound Using Tapi?

Jan 13, 2008

Im developing a TAPI Applicationi had many problems with Acepting the call and detecting DTMF tones, but now these problems are solved,,, now the problem im facing is to play a wave file to the user who is on the phone...... Is there anyone who can gimme code or tel me how to do this in Vb.net

View 5 Replies

Playing The Flash File?

Feb 19, 2008

I created a code that play flash animation file. I use AxShockwaveFlashObject.

AxShockwaveFlash1.Stop()
AxShockwaveFlash1.Movie = "D:\flash\boleh.swf"
AxShockwaveFlash1.Play()

it work. But when I copy the flash file to resource folder and change path become relative ( "..\..\boleh.swf" )the animation not display and didn't show error message.

View 2 Replies

Playing Two Sounds At A Time?

May 26, 2012

how do you do this playing two sounds at a time?

View 4 Replies

Playing Two Sounds Simultanously?

Nov 8, 2009

Is it possible to play two sounds using SoundPlayer simultaneously. I have got 2 sounds, one a music file which keeps on playing in the background and a message sound that will play if some condition is true over that sound. Is it possible??

View 4 Replies

Playing Video Files (And Not Using WMP!)

Oct 3, 2010

This is tied in with the other discussion that I started last week about playing audio files using the DirectX classes. If you haven't yet had a look at that other thread,Using the same reference as in the audio application, let's set up a form for video this time. I started with a form that I then placed a split container on and in the lower panel of the split contatiner, I placed the buttons and other controls. Following is how I have mine set up:

Reread the thread on the audio player because the methods are very similar - in fact some are identical! However, this is video and it got a bit more involved as you might expect.The full code is here and I hope you'll find it useful to you. Following is a screenshot of the end result.

View 2 Replies

Playing Video From Buffer?

Apr 29, 2012

Im trying to do a video player but i have to play this video from the buffer, is this possible.. Let me explain you much more complicated,a got a CryptoStream and im decryting the video

While lngBytesProcessed < lngFileLength
'Read file with the input filestream.
intBytesInCurrentBlock = fsInput.Read(bytBuffer, 0, 4096)
'Write output file with the cryptostream.

[code]....

This code writes my decryted or crypted video to a new file. However, i need to play the video file from the buffer(without copying to a new file), in other way it would be meaningless if i create a decryted file. in other words it would unsecure for me cuz if anyone can locate my temp directorey they can copy my decrypted video files.

View 5 Replies

Playing Video Using DirectX ?

Sep 18, 2009

I have scoured just about every code sample on the web, and am still having trouble. Basically my code follows the following structure:

I installed the DirectX SDK, and imported AudioVideoPlayback Imports Microsoft.Directx.AudioVideoPlayback '''

Then I create my VideoPlayer Public WithEvents VideoPlayer as Video So far so good, I have event handlers and a video object

Then:

[CODE]...........

I execute the above subroutine and the video plays flawlessly

[CODE]............

The above code works perfectly as well

Then I try to execute the PlayVideo sub to play another file and I get a generic "Object reference not set to an instance of an object" error, that does not point to any particular line of code. It took me forever to find out exactly what line of code was causing this. So I came up with a workaround:

In the PlayVideo sub I changed the code to this

[CODE]..............

And there it is, the second video played without error. but then I noticed something, after the second video ended the .Ending event handler did not fire, actually all the event handlers basically died. So someone told me to use a timer to monitor when the video ends, and I basically laughed it off since we know that's an amateur move. After being frustrated for a while, I caved in and used the timer to do my dirty work, which I really don't like.

Now there's another problem, after I play a video in my project, DirectX is not screwed up for other programs until I restart my computer. Particularly I have a visualization plugin for Windows Media Player called Gforce. After I play a video, Gforce will not work, it gives me an "Error=18" which means that my computer does not have sufficient hardware to use it. The only way to be able to clear it up is to restart my computer.

Here are my specs:
Intel 3.0ghz Dual Core processor
Nvidia Geforce 9800GT with 1GB ram
4 GM Ram
Windows 7 64-bit version (build 7100)
Programming in Visual Studio 2008 Professional (using Visual Basic code)

I originally attempted to use the AxWindowsMediaPlayer control, but I am unable to. According to Microsoft there is a bug that prevents me from using it. When I pull up the choose items dialog box it does not show up, if I browse to wmp.dll to manually add it, I get an error ("self-registration for c:windowssystem32wmp.dll failed"). I also read that you should try to add the wmp.ocx instead of wmp.dll, but I am at a loss on this since I am pretty sure that file does not exist. I am trying to put together a new media player program for my theater pc and this video thing is putting me to a standstill. I am a highly experienced vb programmer (over 20 years), but I am not very experienced in DirectX. I have read a lot of code samples on video playback but they all give me tons of problems, so I hate to say it but i think that most of these samples were written by people who don't know what they are doing.

View 2 Replies

Sound Playing Using Both Channels?

Aug 25, 2010

I am creating a program in VB 2010 that needs to play two synthesized sine waves at the same time, one in the right channel and the other tone in the left channel.

These tones will be 2 slightly different frequencies.

I tried to start a thread a week or so ago, but I did not make it clear exactly what I needed, and did not get my project started yet.

View 9 Replies

VS 2005 Playing *.xm From Resource?

Aug 1, 2009

i am using bass.net.dll for playing a *.xm file in my application now problem is my *.xm file is in resource and the function bass.bass_musicload(<file name as string>,........) not support direct playing from resource.So is there any method to play it from resource,

View 3 Replies







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