LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-25-2009, 12:34 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
pygame: example of creating a Sound from an object


Hi!

I'm creating a small framework to reproduce sounds. As I have to make a number of calculations to actually know what I want to put on the channel, I'd like to create a Sound from an object so that the sound is read (somehow) from this object (or buffer, if it's possible).

Are there examples out there of how to achieve this?

Thanks in advance
 
Old 10-26-2009, 10:12 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
I have discovered pygame.bufferproxy.BufferProxy after spending some time experimenting with pygame while looking at pygame's code. Now, I'm able to create the BufferProxy object, but I just don't know how to set its length so when I try to write to the buffer, it tells me that I'm writing data that's over the size of the buffer. Can anybody tell me how to use this buddy?

Thanks in advance!
 
  


Reply

Tags
buffer, object, python, sound


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a shared object vin_pll Linux - General 1 12-18-2008 12:43 PM
LXer: Creating a Web service app object using WebSphere Portal V6 LXer Syndicated Linux News 0 02-24-2007 01:01 PM
Error creating library file from object files using xlc montylee AIX 2 04-07-2005 07:44 AM
Event driven object-to-object: C++ template class mecanism ( NOT STL or STDC++) bretzeltux Programming 2 12-23-2003 02:45 PM
pygame kierwind Linux - Software 5 05-21-2003 04:19 AM


All times are GMT -5. The time now is 09:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration