Discussion:
[Audiere-users] Audiere not compiling
Sam Bateman
2005-07-13 02:26:00 UTC
Permalink
I've downloaded audiere-1.9.3.tar.gz, gunzipped it, ran ./configure
all without a hitch. Then, when I try to make it, I get this error:

DeviceFrame.cpp:40: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:41: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:42: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:43: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:44: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:45: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:46: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:47: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:48: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:49: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:50: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:51: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'

Audiere seems like it would be a great way for me to use music and
sound effects in my programs, but I can't use it if it won't compile.
Any solutions?
Chad Austin
2005-07-13 13:20:49 UTC
Permalink
Hi Sam,

It looks like that bug has been fixed in Audiere CVS.
http://sourceforge.net/cvs/?group_id=32783 has instructions for checking it out.
Let me know if that doesn't work for you.

Chad
Post by Sam Bateman
I've downloaded audiere-1.9.3.tar.gz, gunzipped it, ran ./configure
DeviceFrame.cpp:40: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:41: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:42: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:43: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:44: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:45: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:46: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:47: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:48: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:49: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:50: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
DeviceFrame.cpp:51: error: invalid static_cast from type `void
(DeviceFrame::*)()' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
Audiere seems like it would be a great way for me to use music and
sound effects in my programs, but I can't use it if it won't compile.
Any solutions?
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Audiere-users mailing list
https://lists.sourceforge.net/lists/listinfo/audiere-users
Ed Hall
2005-08-12 15:23:16 UTC
Permalink
I've searched though the Audiere.h file and cannot seem to come up with
a way to determine a track's duration. I can call getLength() on an
OutputStreamPtr which tells me how many samples there are total, but
don't see how to get the sample rate from that object.

I create the OutputStreamPtr by calling OpenSound() on a memory file
I've created via a call to, not surprisingly, CreateMemoryFile().

Everything is working fine (including getPosition() and getLength()) but
I just don't see how to find out the track's duration.

Any ideas?

Thanks!

-Ed

--
Ed Hall (***@brillig.com) http://www.brillig.com/
"There's a hell of a universe next door: let's go!" - e. e. cummings
Chad Austin
2005-08-18 15:29:48 UTC
Permalink
Hi Ed,

The problem is you can only get access to the sampling rate and other
stream information with the SampleSource interface, which isn't
accessible from only an OutputStreamPtr. (I've always wanted to add a
getSampleSource() function to OutputStream...) So, when loading the
stream, do this instead:

blah = OpenSampleSource(...)
// calculate length in seconds
sound = OpenSound(device, blah);

Sorry I've ignored the list. I don't have Internet at home yet and I
finished my thesis, graduated with a master's degree, proposed to my
girlfriend, moved to California, and started a new job in the last
month. So *everything* else goes on the backburner for now. ;)

HTH,
Chad
Post by Ed Hall
I've searched though the Audiere.h file and cannot seem to come up with
a way to determine a track's duration. I can call getLength() on an
OutputStreamPtr which tells me how many samples there are total, but
don't see how to get the sample rate from that object.
I create the OutputStreamPtr by calling OpenSound() on a memory file
I've created via a call to, not surprisingly, CreateMemoryFile().
Everything is working fine (including getPosition() and getLength()) but
I just don't see how to find out the track's duration.
Any ideas?
Thanks!
-Ed
--
"There's a hell of a universe next door: let's go!" - e. e. cummings
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Audiere-users mailing list
https://lists.sourceforge.net/lists/listinfo/audiere-users
Loading...