Realtime seekbar update
This commit is contained in:
parent
3e221f7825
commit
94a1c93349
5 changed files with 7 additions and 6 deletions
|
@ -8,6 +8,7 @@ If nothing is selected when the user presses play, the first song is selected an
|
||||||
Double-clicking when out of focus now behaves as expected.
|
Double-clicking when out of focus now behaves as expected.
|
||||||
Now has a simple dock menu courtesy of Nathanael Weldon <nathanael (at) mailblocks.com>.
|
Now has a simple dock menu courtesy of Nathanael Weldon <nathanael (at) mailblocks.com>.
|
||||||
The playlist index now starts at 1.
|
The playlist index now starts at 1.
|
||||||
|
Seekbar now updates the time field as you drag it, Simon Savary <savary (at) oricom.ca>
|
||||||
|
|
||||||
0.04
|
0.04
|
||||||
----
|
----
|
||||||
|
|
BIN
English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
English.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
2
Sound.m
2
Sound.m
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
//#define RING_BUFFER_SIZE 1048576
|
//#define RING_BUFFER_SIZE 1048576
|
||||||
//#define BUFFER_WRITE_CHUNK 32768
|
//#define BUFFER_WRITE_CHUNK 32768
|
||||||
#define FEEDER_THREAD_IMPORTANCE 10
|
#define FEEDER_THREAD_IMPORTANCE 6
|
||||||
|
|
||||||
//timeout should be smaller than the time itd take for the buffer to run dry...looks like were ironclad
|
//timeout should be smaller than the time itd take for the buffer to run dry...looks like were ironclad
|
||||||
#define TIMEOUT 1
|
#define TIMEOUT 1
|
||||||
|
|
|
@ -131,7 +131,9 @@
|
||||||
// DBLog(@"SEEKING?");
|
// DBLog(@"SEEKING?");
|
||||||
double time;
|
double time;
|
||||||
time = [positionSlider doubleValue];
|
time = [positionSlider doubleValue];
|
||||||
[self sendPortMessage:kCogSeekMessage withData:&time ofSize:(sizeof(double))];
|
|
||||||
|
if ([sender tracking] == NO) // check if user stopped sliding before playing audio
|
||||||
|
[self sendPortMessage:kCogSeekMessage withData:&time ofSize: (sizeof(double))];
|
||||||
|
|
||||||
[self updateTimeField:time];
|
[self updateTimeField:time];
|
||||||
}
|
}
|
||||||
|
@ -312,9 +314,8 @@
|
||||||
{
|
{
|
||||||
// DBLog(@"Received pos update: %f", pos);
|
// DBLog(@"Received pos update: %f", pos);
|
||||||
[positionSlider setDoubleValue:pos];
|
[positionSlider setDoubleValue:pos];
|
||||||
|
[self updateTimeField:pos];
|
||||||
}
|
}
|
||||||
|
|
||||||
[self updateTimeField:pos];
|
|
||||||
}
|
}
|
||||||
else if (message == kCogStatusUpdateMessage)
|
else if (message == kCogStatusUpdateMessage)
|
||||||
{
|
{
|
||||||
|
|
1
TODO
1
TODO
|
@ -1,3 +1,2 @@
|
||||||
Deep sort when dropping files into the playlist.
|
Deep sort when dropping files into the playlist.
|
||||||
Plugins and such.
|
Plugins and such.
|
||||||
Improved GUI.
|
|
Loading…
Reference in a new issue