I need help playing WAV's 
Author Message
 I need help playing WAV's

If somebody could please e-mail me Qbasic code to continuasly play a wave in
the backround of my program.  Please help if you can.



Wed, 02 Dec 1998 03:00:00 GMT  
 I need help playing WAV's

I have written a program for my company that reads a standard comma
separated value file.  Account numbers in it are 8 digits long.  To get
it to return properly, I used the CDBL(x) function.  Problem is, when it
returns an account number ending in 1, it outputs it as 0. Example:

Account Number 15129901 would return as 15129902.

The numbers are not strings in the data file, they are true values.

Anyone know how to fix this?

Matthew R. Hinman



Fri, 04 Dec 1998 03:00:00 GMT  
 I need help playing WAV's

Quote:

> I have written a program for my company that reads a standard comma
> separated value file.  Account numbers in it are 8 digits long.  To get
> it to return properly, I used the CDBL(x) function.  Problem is, when it
> returns an account number ending in 1, it outputs it as 0. Example:

> Account Number 15129901 would return as 15129902.

> The numbers are not strings in the data file, they are true values.

> Anyone know how to fix this?

> Matthew R. Hinman


CORRECTION!!!
 I have written a program for my company that reads a standard comma

- Show quoted text -

Quote:
> separated value file.  Account numbers in it are 8 digits long.  To get
> it to return properly, I used the CDBL(x) function.  Problem is, when it
> returns an account number ending in 1, it outputs it as 0. Example:

> Account Number 15129901 would return as 15129900.

> The numbers are not strings in the data file, they are true values.

> Anyone know how to fix this?

> Matthew R. Hinman




Fri, 04 Dec 1998 03:00:00 GMT  
 I need help playing WAV's


Quote:

>If somebody could please e-mail me Qbasic code to continuasly play a wave in
>the backround of my program.  Please help if you can.

I recently made a program that plays Raw unsigned sound files over and over....

its probably very badly written, but it should give you an idea...

-the head

(ps. it uses autoinitialized DMA , therefore it is incompat. with emm386, and current file limit is about 25k)
(i've tried splitting the file into chunks, but the program ends up repeating only the first chunk of data, can)
(anyone shed some light on the subject pleeeease???!?!?)



Sat, 05 Dec 1998 03:00:00 GMT  
 I need help playing WAV's

Quote:

> I have written a program for my company that reads a standard comma
>> separated value file.  Account numbers in it are 8 digits long.  To get
>> it to return properly, I used the CDBL(x) function.  Problem is, when
it
>> returns an account number ending in 1, it outputs it as 0. Example:

>> Account Number 15129901 would return as 15129900.

>> The numbers are not strings in the data file, they are true values.

>> Anyone know how to fix this?

Matthew, it sounds like you are inputting it into a normal numeric value
then converting it. You might be doing this:

INPUT#1,x
y=cdbl(x)
print y

When you INPUT it into the variable x, a single precision variable, it
lost part of its value, which could not be recovered with CDBL.

Instead, just INPUT it into a double-precision variable, for example

INPUT#1,x#

much simpler

John Knoderer
MAZE MAN COMPUTER SERVICES
P O Box 55
MAZEville, AR  72747-0055

Consultant, Author, Programmer, Educator
1-501-298-3403 mornings and late evenings
1-500-GIFTED-1 (cellular)


MAZE MAN COMPUTER SERVICES
MAZE MAN PUZZLE SERVICES
Box 202   Sulphur Springs, ARkansas 72768-0202



Sun, 06 Dec 1998 03:00:00 GMT  
 I need help playing WAV's


Quote:

>> I have written a program for my company that reads a standard comma
>> separated value file.  Account numbers in it are 8 digits long.  To get
>> it to return properly, I used the CDBL(x) function.  Problem is, when it
>> returns an account number ending in 1, it outputs it as 0. Example:

>> Account Number 15129901 would return as 15129900.

>> The numbers are not strings in the data file, they are true values.

>> Anyone know how to fix this?

Since double precision numbers occupy 8 bytes, and your strings are 8
digits long, why not just store them as strings?   Better still, store
them as long integers (add & to the prefix, e.g. x&) as these only
occupy 4 bytes, and range from -2,147,483,648 to 2,147,483,648!
There will still be some file overhead, but it would be better than
using double precision numbers, AND you would solve your data problem!

Hope this helps,

GP.




Tue, 08 Dec 1998 03:00:00 GMT  
 
 [ 10 post ] 

 Relevant Pages 

1. help playing wav's (here's the code)

2. HELP: Can't play MIDI and WAV at same time

3. HELP:Playing WAV's sequentially in VB3.

4. Help: playing Wav and MP3's from Inside Visual Basic

5. needs help with play wav files

6. I need help: Playing and editing .WAV-files with VB3.0

7. Need Help Playing WAV File

8. need help playing wav at form startup

9. Playing MOD's and WAV's in the background

10. Playing multiple '.wav's

11. Play .wav's as configured in user's Control Panel/Sounds

12. Help needed with wav's

 

 
Powered by phpBB® Forum Software