Qbasicnews.com
July 05, 2020, 05:06:23 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2 3
  Print  
Author Topic: mp3 with qbasic?  (Read 10153 times)
joshuan
Member
*
Posts: 32



« on: August 04, 2003, 01:10:45 AM »

Some years ago, some friends and me made a mp3 acr player... very nice... call BOOMbox... well...

i want to do BOMMbox 2..  the first was made in C... ( idont know nothing about C...i made the hardware, not the software) but we had some problems...

is there any way to do that in BASIC... (runnig in dos mode... not windows....)
Logged

rom Lima, Peru!
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #1 on: August 04, 2003, 01:37:38 AM »

Yes and no.

I completed my car MP3 player a few months ago; it uses DOS as well (boots off a floppy). I used QB for the front-end (menus, song selection, etc), but for actually playing the MP3s, I used MPXPlay. I wrote a TSR in C to monitor/control the program. The TSR updated the LCD and fed keystrokes to the program to control it.

Initially I tried to make the TSR in QB as well. There are a few "hacks" which allow you to create crude TSRs with QB, but you'll soon find that it's a royal pain in the ass. The TSR will be a memory hog and certain statements will cause it to crash for no apparent reason. You'll save yourself A LOT of time and trouble if you just use a different language for the TSR. (C, C++, Pascal, anything but QB) And don't even think about using PowerBasic; the TSRs it generates are slow and very limited.

(There's also TSRBASIC...I remember looking at it but I can't remember why I decided not to use it. Seems like something didn't work right.)


Just to prove I'm not talking out of my ass Smiley

Logged
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #2 on: August 04, 2003, 03:14:04 AM »

Coolnes Plasma!!!!

BTW, what 3d editor do you use to make your 3d models?
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Ninkazu
Been there, done that
*****
Posts: 1169



WWW
« Reply #3 on: August 04, 2003, 03:35:03 AM »

Plasma.... what made you want to MAKE that thing? You can buy an mp3 player cheap...
Logged

am an asshole. Get used to it.
ak00ma
Ancient Guru
****
Posts: 669



« Reply #4 on: August 04, 2003, 04:04:06 AM »

That's the same question as "Why do you code in QB, you could make it faster in other languages?"

I think he made it because it was fun building it and gave him a lot of experience.
Logged

B 4 EVER
Rokkuman
Na_th_an
*****
Posts: 1973



« Reply #5 on: August 04, 2003, 04:46:02 AM »

Whoah...


Freakin' geniuses are among us...  Shocked
Logged
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #6 on: August 04, 2003, 01:20:05 PM »

Quote
BTW, what 3d editor do you use to make your 3d models?


3d models? You mean those vectorball things in my digital reality demo? Graph paper and a pencil. Smiley Made em in math class.

Quote
Plasma.... what made you want to MAKE that thing? You can buy an mp3 player cheap...


It's not just an MP3 player Tongue It plays AC3, MP2, MP3, MPC, OGG, WAV, 669, DSM, DMF, FAR, IT, MDL, MOD, MTM, NST, PTM, S3M, STM, WOW, VOC, and XM files, as well as audio CDs. It also has a realtime frequency spectrum analyzer with output on the LCD. Find a stock MP3 player with all that.

Quote
That's the same question as "Why do you code in QB, you could make it faster in other languages?"

I think he made it because it was fun building it and gave him a lot of experience.


Exactly.
Logged
Mech1031
Na_th_an
*****
Posts: 1536



WWW
« Reply #7 on: August 04, 2003, 06:57:07 PM »

Shocked ...props.
Logged

the mind is a beautiful thing, use it and make the world a more beautiful place.
Neo
Na_th_an
*****
Posts: 2150



« Reply #8 on: August 28, 2003, 11:02:00 AM »

Quote from: "Plasma357"
AC3, MP2, MP3, MPC, OGG, WAV, 669, DSM, DMF, FAR, IT, MDL, MOD, MTM, NST, PTM, S3M, STM, WOW, VOC, and XM files, as well as audio CDs. It also has a realtime frequency spectrum analyzer with output on the LCD.


Wow! Really awesome!

Can you duplicate your player? You might consider bringing it out on the market... Wink Anyway, great job man!
Logged
Ninkazu
Been there, done that
*****
Posts: 1169



WWW
« Reply #9 on: August 28, 2003, 05:42:37 PM »

Microsoft would see that as a great way to get licensing money.
Logged

am an asshole. Get used to it.
potato
Ancient QBer
****
Posts: 409



WWW
« Reply #10 on: August 28, 2003, 05:45:04 PM »

it's like having a pc in your car... why not just connect an old pc and some good speakers to your lighter jack? that cd loading box looks huge
Logged

ammit potato!
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #11 on: August 28, 2003, 05:59:02 PM »

It basically is a computer in a car...that "CD loading box" is the computer. The box is custom built to fit a baby AT mobo. I even had to remove the brackets on the sound and video cards to fit them in the case. The CD-ROM is suspended an inch above the CPU heatsink. You will not find a smaller computer case for AT motherboards. (Mini-ITX, yes, but that's overkill and I'm not made of money.)

Plus, if you just connected an old pc to your lighter jack (assuming you used an inverter), you'd get horrible distortion over your speakers caused by ground loops. (You need a ground loop isolator...) In addition, how would you plan on controlling the thing? You going to have a keyboard and a monitor up front too?
Logged
Diroga
Been there, done that
*****
Posts: 1087


« Reply #12 on: August 28, 2003, 06:13:55 PM »

so it's a computer in the back with a sound card. you made a program to read the cd and play mulit formats. what motherboard and soundcard are you using?
Logged
potato
Ancient QBer
****
Posts: 409



WWW
« Reply #13 on: August 28, 2003, 06:18:59 PM »

Quote from: "Plasma357"
It basically is a computer in a car...that "CD loading box" is the computer. The box is custom built to fit a baby AT mobo. I even had to remove the brackets on the sound and video cards to fit them in the case. The CD-ROM is suspended an inch above the CPU heatsink. You will not find a smaller computer case for AT motherboards. (Mini-ITX, yes, but that's overkill and I'm not made of money.)

Plus, if you just connected an old pc to your lighter jack (assuming you used an inverter), you'd get horrible distortion over your speakers caused by ground loops. (You need a ground loop isolator...) In addition, how would you plan on controlling the thing? You going to have a keyboard and a monitor up front too?


don't they have cars with those now?
Logged

ammit potato!
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #14 on: August 28, 2003, 08:00:01 PM »

Quote
so it's a computer in the back with a sound card


It's more than that. I've got an HD44780 LCD connected to the parallel port (8-bit mode) with inline pots to control brightness/contrast. I used the gameport for the control interface. This requires quite a bit of soldering. If you think this is a "weekend project" think again:
http://nemesisqb.zext.net/osmp3/

The computer also has a video card so that I can grab info from vram and output it on the LCD in realtime with the TSR I wrote.

Quote
you made a program to read the cd and play mulit formats.

Again, more than that. I wrote a few different programs to control it in both C and QB, as I said before. I wrote the driver for the LCD output as well. The programs control the entire front-end including menus, saving settings, disk caching, reading ID3/MOD tags, sorting filelists, browsing the CD, controlling the hardware volume, as well as an interface with MSCDEX to play audio CDs. It was not a trivial task. The source code is over 7,000 lines.

Quote
what motherboard and soundcard are you using?

The mobo is a DFI P5BTX/L with a Pentium 100 MHz CPU, cooled by an oversized heatsink with no fan. The sound card is a Creative Sound Blaster 16 Vibra ISA CT4170.

Quote
don't they have cars with those now?

I assume you are talking about ground loop isolators. No, they are not included with the car. You can buy them for $15-$30.
Logged
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!