April 29, 2024, 10:43:48 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Audio Player with BASS 2.3

Started by ExMember001, November 05, 2006, 01:09:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ExMember001

November 05, 2006, 01:09:03 AM Last Edit: December 26, 2007, 05:33:44 PM by KrYpT
Hi  ;D
I was playing a bit with BASS 2.3 dll and i have convert the BASS dll headers and some of the most important addons !
BASS is a FREE Audio library for FREEWARE and can do mostly everything you need.

take a look at the official site for more info and sdk http://www.un4seen.com/bass.html

Now i've include 2 files, the BASS headers.zip contain only the .inc headers file ready to be use in your program
the Bass Example contain Full Source code and a compiled version of an extremely simple Audio Player that can play (mp1,mp2,mp3,ogg,wma,aac,ac3,mp4,flac,wave,cda)
before compilling, don't forget to do an import library for all the dlls included in the package!

if you find a bug in the headers please report here ;)

have fun !!

sapero

Krypt, remember that Aurora and c++ enums are not compatible (beta 1.2), Aurora starts from 1, cpp from 0
You have to update enum BASS_FX

Ionic Wind Support Team

Or just use '=0' on the first enum member.
Ionic Wind Support Team

ExMember001

Thanx Sapero and Paul ;)
ill update it in a moment.

ExMember001

here's a little update to the example player
i've add 2 DSP effects Flanger and Echo.
i had try myself converting the rotate dsp effect but it didnt work...

ExMember001

Another Update to the headers, i think i've fix a lot in this one  ;D

ExMember001

November 22, 2006, 01:48:49 PM #6 Last Edit: November 22, 2006, 05:23:27 PM by KrYpT
Here is a little bit more advance Audio Player Example
- support Audio CD,MP1,MP2,MP3,OGG,FLAC,WMA,WAV,AIF
- Other formats can be added with bass 2.3 addons http://www.un4seen.com/bass.html#addons
- In album mode, AmpKC look for jpg images in the current folder and you can display a slideshow ;)
- Partially Skinnable
- Alpha Version (there are bugs!)

See first post to download

DominiqueB

Thank's
but some files are missing to recompile !

Compiling...
AmpKC.src
RichEditAPI.src
Unable to Open - C:\Documents and Settings\Martin\Mes documents\Aurora source\Custom subs\RichEditAPI.src
Error(s) in compiling "C:\Documents and Settings\Martin\Mes documents\Aurora source\Custom subs\RichEditAPI.src"
ListviewAPI.src
Unable to Open - C:\Documents and Settings\Martin\Mes documents\Aurora source\Custom subs\ListviewAPI.src
Error(s) in compiling "C:\Documents and Settings\Martin\Mes documents\Aurora source\Custom subs\ListviewAPI.src"

Thank's

ExMember001


ExMember001

the 2 missing src files are now added...

DominiqueB

Great,
thank's compiling ok and run's great

Dominique


ExMember001

AmpKC Audio Player has been updated to 0.6 alpha!
here's the change:

- Added -> now support loading .m3u in playlist.
- Added -> Register FileTypes for supported formats.
- Added -> Opening an m3u playlist from explorer load album mode.
- Added -> Options Dialog.
- Added -> Choose default view for Normal and Album Mode.
- Added -> Options/Views/Album Mode, possibility to set the slideshow delay.
- Added -> If no Title in tags, the filename is display
- Fixed -> Could not restore the player by the taskbar.
- Fixed -> Time is now display when playing start and reset when stop.

I've decide to release it under GPL, so everyone can use and modify the software as long as it remain free  ;)

You can download the update in the first post, include full source code.

J B Wood (Zumwalt)

What is the bare minimum I need to include to make this thing play wave files, and then call it to play the files?
Can I cache the sound files then call them by id?

ExMember001

November 30, 2006, 10:27:02 AM #14 Last Edit: November 30, 2006, 10:32:34 AM by KrYpT
the only files you need is bass.inc and bass.dll
bass.dll support MP1,MP2,MP3,OGG,WAV,AIF by default and MOD files
what you need to do is create a stream for each file you want to play.

first you initiate bass

yourclass::InitBASS(),INT
{
return BASS_Init( -1,44100,0,0,null);
}



then you create your streams


Hstream stream1 = BASS_StreamCreateFile(false, "pathtowav1", 0, 0, 0);
Hstream stream2 = BASS_StreamCreateFile(false, "pathtowav2", 0, 0, 0);
Hstream stream3 = BASS_StreamCreateFile(false, "pathtowav3", 0, 0, 0);


then play it!


BASS_ChannelPlay(stream1,true);
BASS_ChannelPlay(stream2,true);
BASS_ChannelPlay(stream3,true);



ExMember001

Another little update for AmpKC,

Changes in v0.6.1 alpha:
Fixed -> Apply button get enable while clicking on Album Mode tab.
Fixed -> Crash if starting and clicking informations view, or reset playlist and click informations view.
Fixed -> Album Mode Logic.

download availlable in first post !

J B Wood (Zumwalt)

KrYpt, can you make this thing work with EBasic also? With example of use?

ExMember001

possible ;) i'll take a look at it when i'll got more time .

ExMember001

December 17, 2006, 01:51:58 AM #18 Last Edit: December 17, 2006, 03:05:33 PM by KrYpT
Another Update for AmpKC !! a big one this time :P

New in 0.7 Alpha:
- Added -> Loaded Plugins informations in options dialog.
- Added -> Playlist count how many songs there's in, and display result in the listview column header.
- Added -> About Box.
- Added -> Skins Selection... Menu->Options->Skins
- Added -> Skins Controls specifications can be set in an INI files (see default skin folder for template).
- Added -> Skins Buttons Bitmap.
- Added -> Player Window now near Fully Skinnable!!
- Added -> Links for Addons and Skins in respective Option tab.
- Added -> View Menu are now checked, if activated.
- Added -> 2 new Skins, Pink and TombStone !!
- Fixed   -> If no Title tags the Title return was'nt right.
- Fixed   -> Dialog that was not suppose to Open twice.

Since the file is now bigger than 1mb you will need to download from my website
Download Page



ExMember001

December 26, 2006, 06:46:08 PM #19 Last Edit: April 02, 2007, 10:37:10 PM by KrYpT
AmpKC New version 0.7.5 Alpha availlable

Changes in new version:
- Added -> Multiple languages support. (See language files in Languages folder)
- Added -> Languages Selection in Options Dialog.
- Added -> Button in About box to show license.
- Fixed -> Default view was not displaying at the first start of the program.
- Fixed -> Playlist Column was getting shorter sometimes.
- Fixed -> Time was'nt reset when playlist was reset.
- Fixed -> Time was'nt set to 00:00 / 00:00 at start.

Download Here
click on TÃÆ'Ã,©lÃÆ'Ã,©charger blue button to download ;)

ExMember001

March 31, 2007, 10:42:15 PM #20 Last Edit: April 02, 2007, 10:34:49 PM by KrYpT
Here's another update to AmpKC for those interrested.
AmpKC is really taking form and i've now flush WinAmp :P
I really need nice skins... if anyone with a bit of drawing skill want to contribute you are welcome :)
as you can see, mine is limited ...

New in 0.8 Alpha:
- Added -> 3 bands Equalizer (Bass, Mid, Treble).
- Added -> Equalizer Presets Saving Capabilities.
- Added -> New File Filter (*.*).
- Added -> Open Folder with AmpKC, Shell Extension
- Added -> Possibility to play the file by right clicking on it in the playlist and select Play
- Changed -> Upgrade Bass.dll to version 2.3.02 (Use Fraunhofer's mp3 decoder).
- Changed -> Skin preview was from the region bitmap, now Ampkc use another file named preview.jpg in the skin folder.
- Changed -> The New Skin links in Options Dialog now point to a Skin specific spot on the website kryptikcreations.ca.
- Fixed -> Playing Time Accuracy
- Fixed -> stop & pause button was disapearing when playlist end.
- Fixed -> Some formats was missing in the Openfile and Open folder dialog if too much addons installed (Compiler bug fix).
- Remove -> FullScreen Button (no real utility here...).

To Do before 1.0:
- Music Database
- minimized ChangeSong Fading Window
- Better skin always needed

Download Here sources included.
click on TÃÆ'Ã,©lÃÆ'Ã,©charger blue button to download

pistol350

Hello Krypt,
Congratulations!  8)
you've done a very nice work!thanks for sharing the codes  ;)
A few questions and remarks :

   - As you can't click on the small screen showing the picture related to the album or currently playing music,
   I wondered if the only way to shift from "the image preview" to "informations or tags" was to go to options then view ... ?

   - Morever something happens when a picture is displayed in the screen and i wondered if it was done on purpose.
    I mean, the image repetitively shifts from  a normal display to a blurry one.Is it an additional effect ?  :)


PS:
Je me rappelle de ton programme popotte crÃÆ'Ã,©ÃÆ'Ã,© sur Ibasic  ;)
et je l'ai telechargÃÆ'Ã,© ainsi qu'une autre archive nommÃÆ'Ã,© MYGUI ,mais il y'a une erreur d'archive des que je les dÃÆ'Ã,©zippe.
Peux tu reverifier ces fichiers s'il te plait ?
Merci!
Anyway,keep up mate !

Cheers!
Peter

Regards,

Peter B.

ExMember001

April 02, 2007, 09:40:11 PM #22 Last Edit: April 02, 2007, 10:01:27 PM by KrYpT
hi, pistol350
thanx for the feedback :P
yes, the only way to change views for the moment is from the menu...
I had try to add something like clicking on it and a contextmenu, but some restriction in my code complicate the thing a bit..

The blurry image bug is known.. it is cause when a picture is set to the folder... i have not find a way to correct this at the moment.

Merci :P
ps. les fichiers seront vÃÆ'Ã,©rifiÃÆ'Ã,©s tout de suite!!

pistol350

Regards,

Peter B.