Bryan Schumaker
d00ed2ebdc
Update PKGBUILD for the new release
...
I have been doing this as part of the release process, but it's slightly
easier to do it as a commit after. I was having too much trouble
keeping the hash correct in the last few months.
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-01-23 08:21:26 -05:00
Bryan Schumaker
4f0671e4a7
Ocarina 5.5
2012-01-23 08:04:39 -05:00
Bryan Schumaker
e11df95c1b
Ocarina 5.5-rc
2012-01-04 08:28:07 -05:00
Bryan Schumaker
3e458e2d9f
libsaria: Validate library before adding new songs
...
If a file has been moved to another location in the same library root
the new location won't be added since it'll have the same inode number.
The track would then be removed during the library validation step. I
switch the order for correctness.
2012-01-04 08:22:21 -05:00
Bryan Schumaker
b503536d57
libsaria: Fix iterator initializer bug
...
It was being initialized with '==' instead of '=', so the for loop was
always causing a segmentation fault. This was caused by commit
180707a6c2
Author: Bryan Schumaker <bjschuma@gmail.com>
Date: Thu Dec 29 22:08:53 2011 -0500
libsaria: Remove redundant code
Nothing needs to call this function anymore. I also cleaned
up the header file a bit.
2011-12-31 11:19:31 -05:00
Bryan Schumaker
e21f0e251c
libsaria: LibraryPath()s load their own directory
...
It makes more sense to set this variable directly from the save file
rather than read it in and pass it as an argument.
2011-12-31 11:13:36 -05:00
Bryan Schumaker
41ec0b68e0
libsaria: Validate library tracks after updating
...
I check two things during this step:
1) Does the file still exist?
2) Does the file have the same inode number?
If the answer to either of these is "no", then the track is removed from
the library.
2011-12-31 10:48:05 -05:00
Bryan Schumaker
d4ac6a870f
ocarina: Remove from queue keybinding
...
Select some tracks and press delete.
2011-12-30 23:32:07 -05:00
Bryan Schumaker
58800be19a
ocarina: Create a remove from queue menu item
...
Now I can remove things from the queue if I change my mind!
2011-12-30 23:27:45 -05:00
Bryan Schumaker
3fa1331303
libsaria: Remove ids from the queue
...
In case the user changes their mind...
2011-12-30 23:27:15 -05:00
Bryan Schumaker
425c7421ed
libsaria: Switch to using a list for the queue
...
A deque won't allow me to remove elements from anywhere in the queue, so
using a linked list is a better choice.
2011-12-30 23:15:07 -05:00
Bryan Schumaker
d655739b77
libsaria: Save queue to disk
...
This will restore the queue the next time ocarina is started up.
2011-12-30 20:26:36 -05:00
Bryan Schumaker
8a0922c4a1
libsaria: Generic LoadFile() task
...
This was specific to the library namespace, but I think it makes more
sense to exist as a global class definition that can be reused by
others.
2011-12-30 20:22:47 -05:00
Bryan Schumaker
11e82cccf1
libsaria: Save queue to disk
...
I save when IDs are added and when a next track is chosen.
2011-12-30 20:02:24 -05:00
Bryan Schumaker
30c45f608f
ocarina: Modifications for the new current_track() function
...
Without this patch ocarina/ won't compile...
2011-12-30 19:48:04 -05:00
Bryan Schumaker
4dac0fe096
libsaria: New current_track() function
...
Instead of taking a callback function, I instead find a pointer to the
current track and return this to the caller.
2011-12-30 19:47:13 -05:00
Bryan Schumaker
0ef8e44207
libsaria: Remove unused variable from Track()
2011-12-30 19:46:54 -05:00
Bryan Schumaker
94a17a32a4
ocarina: Play file after loading
...
Somewhere along the line I lost the call to play() when a non-library
track is loaded from the harddrive.
2011-12-30 19:45:27 -05:00
Bryan Schumaker
a44ecbb795
libsaria: Remove old readdir() function
...
It's not used anymore...
2011-12-30 19:15:03 -05:00
Bryan Schumaker
ab0e459298
libsaria: Change track cleanup process
...
Tracks only need to be unlisted from the library list when they are
manually removed by the user. Trying to do this during shutdown lead do
a segfault because the library's file_list had already been removed when
I tried to access it.
2011-12-30 16:42:04 -05:00
Bryan Schumaker
2a9900c1e5
libsaria: Tracks remove themselves from the list
...
This is mostly for when a library path is removed from the list. Tracks
all remove themselves when destroyed, and then the library can be
refreshed.
2011-12-30 16:05:35 -05:00
Bryan Schumaker
26979eb6a9
libsaria: Track()s add themselves to the index and library
...
When one is created, it adds itself to the library and index. Up next:
removing themselves when they are destroyed.
2011-12-30 15:57:14 -05:00
Bryan Schumaker
6b7c3f3d50
libsaria: Use dynamic memory for library tracks
...
This allows me to create only one Track() instance for each song in the
library. Before this, a Track() was being created and then copied when
adding new songs to the library. I thought this was wasteful, so now
each song is only created once.
2011-12-30 15:50:21 -05:00
Bryan Schumaker
ff4fcbf809
libsaria: Clean up path scanning code
...
I have an easier time figuring out what's going on now.
2011-12-30 15:03:45 -05:00
Bryan Schumaker
180707a6c2
libsaria: Remove redundant code
...
Nothing needs to call this function anymore. I also cleaned up the
header file a bit.
2011-12-29 22:08:53 -05:00
Bryan Schumaker
bdf359e008
libsaria: Remove path.cpp file
...
I moved these functions into the main library.cpp file
2011-12-29 21:54:51 -05:00
Bryan Schumaker
8e8eec3556
libsaria: Move update_path() function
...
Now it's in the library.cpp file.
2011-12-29 21:42:07 -05:00
Bryan Schumaker
dbeb2981d4
libsaria: Move update code to path subdir
...
This keeps it all together and makes editing the library less confusing.
2011-12-29 21:12:27 -05:00
Bryan Schumaker
ad989fdcd7
libsaria: Move more LibraryPath() code to the subdirectory
2011-12-29 21:02:24 -05:00
Bryan Schumaker
df7e677bf2
libsaria: Remove unused LibraryPath function
...
I don't need to get the list of tracks anymore, now that my for_each
function has been removed.
2011-12-29 20:46:01 -05:00
Bryan Schumaker
d74efc6022
libsaria: Remove barely used size function from LibraryPath
...
It was used internally once and externally once (to print out the
current size). It can easily be removed to clean things up.
2011-12-29 20:43:46 -05:00
Bryan Schumaker
995a372a6e
libsaria: Library code can access the path_list directly
...
This makes more sense than using an accessor function. Nothing outside
the library can use this variable, so there shouldn't be other problems.
2011-12-29 20:37:05 -05:00
Bryan Schumaker
fe8a293377
libsaria: Move library's LoadTask() to file.cpp
...
This is the only place it's used, so it makes sense to define it there.
2011-12-29 20:31:54 -05:00
Bryan Schumaker
9da577daa0
libsaria: Begin moving LibraryPath class to subdirectory
...
I think it'll be easier to work with if it is self-contained in a
subdirectory. Otherwise it's too mixed in with the library code to be
maintainable.
2011-12-29 20:27:04 -05:00
Bryan Schumaker
8b78203fc7
ocarina: Fix compile error
...
I forgot to remove the for_each() function from the library code.
2011-12-29 20:21:03 -05:00
Bryan Schumaker
63140fb6a0
libsaria: Remove queue for_each
...
It's been replaced with iterator functions.
2011-12-29 16:25:34 -05:00
Bryan Schumaker
02f8dbc6b8
ocarina: Fill queue using iterator functions
...
I don't need the old for_each method anymore, either. I remove it using
this patch.
2011-12-29 16:24:54 -05:00
Bryan Schumaker
fe8c1cd580
libsaria: Create iterator functions for the queue
2011-12-29 16:24:33 -05:00
Bryan Schumaker
3749b56bfd
libsaria: Remove old list file
...
I've completely replaced it with my new list now.
2011-12-29 15:47:11 -05:00
Bryan Schumaker
ec2aadbc2d
libsaria: Move get_info() function to new list
2011-12-29 15:43:17 -05:00
Bryan Schumaker
fb0084c275
libsaria: Remove old play_id() function
...
Nothing uses it anymore
2011-12-29 15:35:06 -05:00
Bryan Schumaker
17e4f3f2ca
ocarina: Use new playid() function
2011-12-29 15:33:48 -05:00
Bryan Schumaker
8049a7a9fd
libsaria: Select songid using libsaria controls.cpp
...
I do this in the upper level namespace, rather than doing it in the
library, to make use of the play_filepath() function that I already have
written.
2011-12-29 15:32:15 -05:00
Bryan Schumaker
c1cc33877c
libsaria: Find filepath from songid using new list
2011-12-29 15:30:30 -05:00
Bryan Schumaker
7b78f18e52
libsaria: Remove next() from the queue
...
I don't need it anymore.
2011-12-29 15:10:00 -05:00
Bryan Schumaker
bcc34ef4b0
libsaria: Choose next song from the new list
...
I removed the old list functions while I was at it. I also changed the
next() function in the controls.cpp file to work with filepaths so the
library and queue won't have to load the chosen file themselves.
2011-12-29 15:06:12 -05:00
Bryan Schumaker
942c518394
libsaria: Remove for_each() from library
...
I don't need it anymore.
2011-12-29 14:20:53 -05:00
Bryan Schumaker
fea84b90ac
libsaria: Move list size function
...
It now exists with my new playlist code, since I'm phasing out the old
code.
2011-12-29 12:28:00 -05:00
Bryan Schumaker
5dcfac8be2
ocarina: Use the iterators to fill the library list
...
I keep the old way around for the queue until I can change that, too.
2011-12-29 12:09:35 -05:00
Bryan Schumaker
2fd41ff4d7
libsaria: Create iterator functions for the library
...
I use these to fill in the UI list for the library. I think this will
be easier to use (and cleaner) than passing a function pointer to a
for_each loop.
2011-12-29 12:08:32 -05:00