Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Music Player with play-list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2009, 09:06 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default Music Player with play-list

I wrote this program because I wanted to play recorded radio programmes in succession in long car journeys, once each. Hence the playlist and delete-after-playing features.

Because I find that I have to perform a soft reset quite frequently I wanted to ensure that I could resume playing the current sound file where I had left off. (Actually, I move back the play point by a couple of seconds to include an overlap.) So there is an invisible list of all files that have been played and the point to which playing has reached. Entries in this file are only removed as a result of the "Tidy" function determining that the file has been deleted.

The visible playlist table is also kept in a file that gets read at start up and is not purged until the user chooses "Tidy".

There are a set of configuration parameters which are kept in the third CSV data file belonging to the program. These include whether the “Forward” and “Rewind" buttons are to move through the file in percentage terms or by an absolute amount of playing time. (I could not decide, when designing the program, which would always be better!)

I added the "darken" feature to turn off the backlight to save battery power when listening while not using external power.

Both the playing progress through the sound file and the position of the volume control are shown using TaskBar objects. The user can adjust these by dragging the bar marker or by clicking or holding down the corresponding buttons. The code for implementing this illustrates a way in which a drag by the user can be distinguished from programmatic adjustment.

Please let me know if anyone finds a bug or just a better way of doing what I've done.

Note that the zip file does not include any DLLs and that the supporting FMOD DLLs are not part of Basic4PPC. The URL for that is elsewhere in the forums.

Mike.
Attached Images
File Type: jpg ScreenShot-2009-11-25.jpg (15.2 KB, 105 views)
Attached Files
File Type: zip MusicPlayer.zip (22.9 KB, 144 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to play a MIDI File Obelix Questions (Windows Mobile) 4 04-11-2009 05:50 PM
How to play 3gp file in Windows media player vijay_vrc Questions (Windows Mobile) 1 11-03-2008 11:55 PM
Play sound(repeat playing) sintaq Questions (Windows Mobile) 2 04-05-2008 03:51 PM
How to play multiple sounds at once? justdo Questions (Windows Mobile) 2 09-24-2007 03:59 AM
How to play 2 sound files at the same time? conf Questions (Windows Mobile) 2 08-27-2007 06:21 AM


All times are GMT. The time now is 12:27 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0