473,387 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Direct Sound

I want to use a trackbar to show progress of a sound file currently being played. So what I thought I would do is this

Have the trackbar's maximum value equal 1. On my timer's tick event, I would have the trackbar's value equal the current play position divided by the lenght of the buffer. I can not find a way to get the lenght of a buffer, so if someone could either tell me a better way to do it, or how to get the lenght of a buffer, please tell me. Thank you.
Nov 20 '05 #1
1 927
Check this:
http://www.planet-source-code.com/vb...2221&lngWId=10
This guy had acontrol for playing sound etc.
"Bill English" <an*******@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.com...
I want to use a trackbar to show progress of a sound file currently being played. So what I thought I would do is this:
Have the trackbar's maximum value equal 1. On my timer's tick event, I

would have the trackbar's value equal the current play position divided by
the lenght of the buffer. I can not find a way to get the lenght of a
buffer, so if someone could either tell me a better way to do it, or how to
get the lenght of a buffer, please tell me. Thank you.
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marco Krechting | last post by:
Hi All, I have a database with the timer function set to warn the user that arecord is due to expire. Is there a Win API that I can use so a loud warning will go off. Not this simpel beep in...
4
by: Robert Gravereaux | last post by:
I'm putting together a C# .Net forms project on win2k. The application requires some sort of horn sound. I've never implemented any audio in .Net, so I'm not sure how best to accomplish this. ...
19
by: Lisa Jones | last post by:
Hi I don’t want to change my name or anything :) but I wish I was able to save Sound into SQL server and retrieve it So my question is How do you save a wav file into a SQL server and how do...
0
by: swaroopa | last post by:
Hello Partner, Please forward some good resumes with excellent communication skills. J2EE CONSULTANT Exp: 4-6YEAR Location : Detroit, MI
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.