LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 10-25-2009, 01:34 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,174
Blog Entries: 1
Thanked: 0
pygame: example of creating a Sound from an object


[Log in to get rid of this advertisement]
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
linuxubuntu eantoranz is offline  
Tag This Post , , , ,
Reply With Quote
Old 10-26-2009, 11:12 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,174
Blog Entries: 1
Thanked: 0

Original Poster
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!
linuxubuntu eantoranz is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 01:43 PM
LXer: Creating a Web service app object using WebSphere Portal V6 LXer Syndicated Linux News 0 02-24-2007 02:01 PM
Error creating library file from object files using xlc montylee AIX 2 04-07-2005 08:44 AM
Event driven object-to-object: C++ template class mecanism ( NOT STL or STDC++) bretzeltux Programming 2 12-23-2003 03:45 PM
pygame kierwind Linux - Software 5 05-21-2003 05:19 AM


All times are GMT -5. The time now is 09:01 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration