Skip to content

Commit

Permalink
Separate code and documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed May 6, 2018
1 parent b126dd5 commit 4b235db
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 5 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# v2m-player
Farbrausch V2M player

![TinyPlayer](https://github.com/zvezdochiot/v2m-player/blob/master/V2M-TinyPlayer.jpg)
![TinyPlayer](https://github.com/zvezdochiot/v2m-player/blob/master/doc/V2M-TinyPlayer.jpg)

This is a quick port of the tinyplayer at https://github.com/farbrausch/fr_public/tree/master/v2 to SDL.

## Build

```
cd src
ccmake .
cmake .
make
```

## Usage

```
./v2mplayer ../v2m/breeze.v2m
```

---
2018
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes
1 change: 1 addition & 0 deletions doc/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.20180108
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions v2mplayer.cpp → src/v2mplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,8 @@ void V2MPlayer::Tick()

synthProcessMIDI(m_synth, m_midibuf);

if (m_state.nexttime == (uint32_t)-1)
if ((m_state.nexttime == (uint32_t)-1) || (m_state.time >= m_base.maxtime))
m_state.state = PlayerState::STOPPED;
if(m_state.time >= m_base.maxtime)
m_state.state=PlayerState::STOPPED;
}

bool V2MPlayer::Open(const void *a_v2mptr, uint32_t a_samplerate)
Expand Down
File renamed without changes.

0 comments on commit 4b235db

Please sign in to comment.