Skip to content

Commit

Permalink
0.20200407: version support seeking
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Apr 7, 2020
1 parent a06ff33 commit c3953c3
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 9 deletions.
51 changes: 51 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# v2m-player
Farbrausch V2M player
SDL Port by github.com/jgilje

0.20200407

version support seeking

0.20180825

convert to v2m newest version

0.20180821

fix error memory allocator

0.20180819

realloc buffer stdin

0.20180818

fix stdin buffer size (arg -b)

0.20180817

PIPE Version (for GZIP)

0.20180608

INSTALL Version

0.20180108

Fix time play in V2MPlayer::Tick()

0.20171117

Switch to optimized code https://github.com/lieff/v2m-player

0.20170725

Add key-mode for player (options)

0.20170714

Time limit for player

0.20170322

Library libv2m
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -DRONAN -Os -flto -Wall -fno-as

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
set(MAJOR_VERSION 0)
set(DATE_VERSION 20180825)
set(DATE_VERSION 20200407)
set(V2M_VERSION ${MAJOR_VERSION}.${DATE_VERSION})
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ http://ftp.modland.com/
```

---
2018
2020
7 changes: 5 additions & 2 deletions man/man1/v2mplayer.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "V2mPlayer User Manual" 1 "0.20180825" "V2m documentation"
.TH "V2mPlayer" 1 "0.20200407" "07 Apr 2020" "User Manual"

.SH NAME
v2mplayer
Expand All @@ -13,9 +13,12 @@ v2mplayer

.SH OPTIONS
.TP
\fB-b\fP
\fB-b\fP N
force power size stdin buffer (int, optional, [0..10])
.TP
\fB-s\fP N.N
start at position (float, optional, in s., default = 0.0)
.TP
\fB-k\fP
key/auto stop (bool, optional, default = false)
.TP
Expand Down
9 changes: 5 additions & 4 deletions src/tinyplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ static void V2mPlayerUsage()
{
printf("Usage : v2mplayer [options] <input_file_v2m>\n\n");
printf("options:\n");
printf(" -b force power size stdin buffer (int, optional, [0..10])\n");
printf(" -s start at position (int, optional, in ms., default = 0)\n");
printf(" -b N force power size stdin buffer (int, optional, [0..10])\n");
printf(" -s N.N start at position (float, optional, in s., default = 0.0)\n");
printf(" -k key/auto stop (bool, optional, default = false)\n");
printf(" -o str output v2m newest version (string, optional, default = none)\n");
printf(" -h this help\n");
Expand Down Expand Up @@ -112,7 +112,7 @@ int main(int argc, char** argv)
switch(opt)
{
case 'b':
fbuf = atof(optarg);
fbuf = atoi(optarg);
break;
case 'k':
fkey = 1;
Expand All @@ -125,7 +125,8 @@ int main(int argc, char** argv)
fhelp = 1;
break;
case 's':
startPos = atoi(optarg);
startPos = (int)(atof(optarg) * 1000);
startPos = (startPos > 0) ? startPos : 0;
break;
case ':':
printf("option needs a value\n");
Expand Down
2 changes: 1 addition & 1 deletion src/v2mplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define V2MPLAYER_H_

#define PROJECTNAME "V2MPlayer"
#define PROJECTVERSION "0.20180825"
#define PROJECTVERSION "0.20200407"
#define PROJECTURL "github.com/jgilje"


Expand Down

0 comments on commit c3953c3

Please sign in to comment.