Search found 17 matches

by experimental-design
Tue Jan 28, 2020 6:46 pm
Forum: C++ Development
Topic: Calling a timed function from wxDialog derived class, Event crash.
Replies: 3
Views: 97

Re: Calling a timed function from wxDialog derived class, Event crash.

Thanks for your help. I resolved the issue. I put the code that plays a track outside of the while loop since it did not need to be there. Strangely, what seems to have fixed the problem was changing OpenAL Soft specific code to pause audio playback instead of stopping the audio playback when called...
by experimental-design
Mon Jan 27, 2020 5:31 am
Forum: C++ Development
Topic: Calling a timed function from wxDialog derived class, Event crash.
Replies: 3
Views: 97

Calling a timed function from wxDialog derived class, Event crash.

My program crashes after running a process after the second time a button is clicked on. The backtrace shows that it is related to event processing. Backtrace: #0 0x00007ffff576e78c in _XEnq () at /usr/lib/libX11.so.6 #1 0x00007ffff576b448 in () at /usr/lib/libX11.so.6 #2 0x00007ffff576bd8a in _XEve...
by experimental-design
Wed Dec 18, 2019 4:44 pm
Forum: The Code Dump
Topic: Timeline Track Editor wxWidgets only
Replies: 9
Views: 3985

Re: Timeline Track Editor wxWidgets only

Update 7:

I added functions to clear audio data stored in AudioStreamContainer class and erase the file stream data is stored in.
I also made a function to clear data points on graph.

The example now allows audio to be overwritten by new audio loaded when clicking on browse.
by experimental-design
Fri Sep 13, 2019 5:30 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 684

Re: Building wxWidgets Program with MSYS2 + CMake

Thank you both for the help! I was able to build the small program with Codeblocks without problems. I did need to move the wx/wx.h and wx/precomp.h header files to main.cpp, include winsock before wx, and add -lws2_32 to link winsock for boost asio use. I will try to get this to work with CMake. I ...
by experimental-design
Fri Sep 13, 2019 5:03 am
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 684

Re: Building wxWidgets Program with MSYS2 + CMake

The headers are in main.h and SimpleSerial.h . Here is a small program that uses the same headers and gives the same errors. main.h #ifndef _OSGVIEWERWX_H_ #define _OSGVIEWERWX_H_ #include "wx/defs.h" #include "wx/app.h" #include "wx/cursor.h" #include "wx/glcanvas.h" //to work with openscenegraph o...
by experimental-design
Thu Sep 12, 2019 3:41 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 684

Re: Building wxWidgets Program with MSYS2 + CMake

Sorry. I read your post too quickly and missed that part. Warnings In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:36, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:92, from C:/msys64/mingw64/include/wx-3.0/wx/msw/wrapwin.h:65, from C:/msys64/mingw64/includ...
by experimental-design
Thu Sep 12, 2019 2:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 684

Re: Building wxWidgets Program with MSYS2 + CMake

I get the error when building my application.

wxWidgets version is 3.0.4.
by experimental-design
Thu Sep 12, 2019 3:58 am
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 684

Building wxWidgets Program with MSYS2 + CMake

I am trying to build a wxWidgets program I made in Linux on Windows 10 using MSYS2 and CMake. Compilers used are gcc version 9, g++ version 9 of MinGW 64-bit. I managed to configure the build successfully with this command. cmake .. -G "MSYS Makefiles" -DwxWidgets_CONFIG_EXECUTABLE=/mingw64/bin/wx-c...
by experimental-design
Tue Aug 27, 2019 8:32 pm
Forum: The Code Dump
Topic: Timeline Track Editor wxWidgets only
Replies: 9
Views: 3985

Re: Timeline Track Editor wxWidgets only

Update 6: I fixed the large CPU usage issue. CPU usage has drastically decreased to little more than half of its usage and performance has greatly improved. It was fixed by calling Refresh() only when needed after a point was added to or removed from graph. Also event.Skip() was called at end of res...
by experimental-design
Sat Jul 06, 2019 9:46 pm
Forum: Announcements and Discoveries
Topic: Timeline Track Editor
Replies: 0
Views: 1416

Timeline Track Editor

I posted this in Code Dump, but I think it is ready to actually get a review. This is a general GUI template code to get people started on using a graphical timeline with tracks to edit a double-type variable or audio. No audio editing, just loading audio and playback. https://github.com/adct-the-ex...
by experimental-design
Sat Jul 06, 2019 9:42 pm
Forum: The Code Dump
Topic: Timeline Track Editor wxWidgets only
Replies: 9
Views: 3985

Re: Timeline Track Editor wxWidgets only

Update 5: I fixed a critical bug that caused the program to crash whenever a graph point was removed! It was just a really dumb mistake of passing the last iterator from vector and assuming that iterator was the iterator pointing to the element that was pushed back into vector. It was actually the s...
by experimental-design
Tue Jul 02, 2019 4:04 pm
Forum: The Code Dump
Topic: Timeline Track Editor wxWidgets only
Replies: 9
Views: 3985

Re: Timeline Track Editor wxWidgets only

Thanks! You made my day.

I haven't gotten feedback, but the good news is most of the views on the github project come from this forum.
by experimental-design
Mon Jul 01, 2019 8:49 pm
Forum: The Code Dump
Topic: Timeline Track Editor wxWidgets only
Replies: 9
Views: 3985

Re: Timeline Track Editor wxWidgets only

Minor Update 4.1

-Improved graphing of audio to be more accurate.
-Fix most audio playback issues. Can now start audio playback at any point and rewind and fast forward audio.
by experimental-design
Wed Jun 19, 2019 6:09 pm
Forum: The Code Dump
Topic: Timeline Track Editor wxWidgets only
Replies: 9
Views: 3985

Re: Timeline Track Editor wxWidgets only

Update 4: Added capability to handle audio. OpenAL Soft and libsndfile libraries need to be installed. -Added AudioTrack to handle data operations and graphing for audio. -Added StereoAudioTrack to graph mono audio data and stereo audio data and audio playback. -Added MonoAudioTrack to graph mono au...
by experimental-design
Tue Jun 11, 2019 2:09 am
Forum: The Code Dump
Topic: Timeline Track Editor wxWidgets only
Replies: 9
Views: 3985

Re: Timeline Track Editor wxWidgets only

Update 3:

Added ability to call separate functions for separate playback states such as play, pause, rewind, fast forward, null(state after stop button pressed).