Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 16th, 2003, 03:12 PM
maboroshi maboroshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 48 maboroshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 30 m 29 sec
Reputation Power: 5
How to play From CD Using tkSnack

Hi all I was just wondering how to play music from a cd using tkSnack would it just be mysound.read(My CDROM Path) That would'nt work on all systems so any help to do this across all systems would be appreciated

Cheers

Reply With Quote
  #2  
Old December 16th, 2003, 03:32 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Mmmm, there is never going to be a totaly cross platform way to play sounds with Tk since TK doesnt work on some platforms, mac for one!

Possibly check out pyGame, i know you can use it to eject a CD and sound is kinda important in a game so

http://www.pygame.org/

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old December 16th, 2003, 04:32 PM
maboroshi maboroshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 48 maboroshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 30 m 29 sec
Reputation Power: 5
Thanks for the quick reply

Hey Thanks I checked out PyGame

It is just a matter of figuring out how to use it

So there is no way to do that in tkSnack

What about if it was just for windows platforms is there an absolute path to a CDROM drive in windows

Thanks Cheers

Reply With Quote
  #4  
Old December 16th, 2003, 05:04 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
We'll i'm not Tk buff but i do know that Tk wont work on mac so. but if you where just on windows the it should be fine... i surpose the abs path to a CD drive could be something as simple as D:\

On windows you can play with sounds using the winsound module

http://www.python.org/doc/2.3.2/lib...e-winsound.html

Mark.

Reply With Quote
  #5  
Old December 16th, 2003, 05:31 PM
maboroshi maboroshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 48 maboroshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 30 m 29 sec
Reputation Power: 5
Hey Cool

Yeah I guess TkSnack would'nt be the best choice for a project that was actually going to be distributed

I am basically just messing around so I can learn how to program TkSnack was the first thing that popped up on the internet

Maybe I will just leave my music player with Open Play Stop buttons

Thanks for all your help

Cheers

Andrew

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > How to play From CD Using tkSnack


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway