diff options
author | Torne Wuff <torne@wolfpuppy.org.uk> | 2011-11-06 22:44:25 +0000 |
---|---|---|
committer | Torne Wuff <torne@wolfpuppy.org.uk> | 2011-11-06 22:44:25 +0000 |
commit | 569285794b9112f0134ddad4bb886308ea4a7be6 (patch) | |
tree | ce702cb07829820261a682c471133c76d11c610e /apps/codecs/libgme/ym2413_emu.c | |
parent | d9b7d58fa6c9ceb136bea429adf6746cc7138208 (diff) | |
download | rockbox-569285794b9112f0134ddad4bb886308ea4a7be6.tar.gz rockbox-569285794b9112f0134ddad4bb886308ea4a7be6.zip |
Bulk convert all DOS line endings to UNIX.
For the git migration we want a nice clean repository with UNIX line
endings. git does not use svn:eol-style, we just need the file contents to be
sane.
Sorry everybody. I know this messes up blame.
Scumbag *NIX developer says migrating to git will make line ending issues go
away; commits giant change to svn which changes line endings anyway. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30924 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/ym2413_emu.c')
-rw-r--r-- | apps/codecs/libgme/ym2413_emu.c | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/apps/codecs/libgme/ym2413_emu.c b/apps/codecs/libgme/ym2413_emu.c index 9efd3dcc3d..d9ada431ca 100644 --- a/apps/codecs/libgme/ym2413_emu.c +++ b/apps/codecs/libgme/ym2413_emu.c | |||
@@ -1,45 +1,45 @@ | |||
1 | // Game_Music_Emu 0.5.5. http://www.slack.net/~ant/ | 1 | // Game_Music_Emu 0.5.5. http://www.slack.net/~ant/ |
2 | 2 | ||
3 | #include "ym2413_emu.h" | 3 | #include "ym2413_emu.h" |
4 | 4 | ||
5 | void Ym2413_init( struct Ym2413_Emu* this ) | 5 | void Ym2413_init( struct Ym2413_Emu* this ) |
6 | { | 6 | { |
7 | this->last_time = disabled_time; this->out = 0; | 7 | this->last_time = disabled_time; this->out = 0; |
8 | } | 8 | } |
9 | 9 | ||
10 | int Ym2413_set_rate( struct Ym2413_Emu* this, int sample_rate, int clock_rate ) | 10 | int Ym2413_set_rate( struct Ym2413_Emu* this, int sample_rate, int clock_rate ) |
11 | { | 11 | { |
12 | OPLL_new ( &this->opll, clock_rate, sample_rate ); | 12 | OPLL_new ( &this->opll, clock_rate, sample_rate ); |
13 | OPLL_reset_patch( &this->opll, OPLL_2413_TONE ); | 13 | OPLL_reset_patch( &this->opll, OPLL_2413_TONE ); |
14 | 14 | ||
15 | Ym2413_reset( this ); | 15 | Ym2413_reset( this ); |
16 | return 0; | 16 | return 0; |
17 | } | 17 | } |
18 | 18 | ||
19 | void Ym2413_reset( struct Ym2413_Emu* this ) | 19 | void Ym2413_reset( struct Ym2413_Emu* this ) |
20 | { | 20 | { |
21 | OPLL_reset( &this->opll ); | 21 | OPLL_reset( &this->opll ); |
22 | OPLL_setMask( &this->opll, 0 ); | 22 | OPLL_setMask( &this->opll, 0 ); |
23 | } | 23 | } |
24 | 24 | ||
25 | void Ym2413_write( struct Ym2413_Emu* this, int addr, int data ) | 25 | void Ym2413_write( struct Ym2413_Emu* this, int addr, int data ) |
26 | { | 26 | { |
27 | OPLL_writeIO( &this->opll, 0, addr ); | 27 | OPLL_writeIO( &this->opll, 0, addr ); |
28 | OPLL_writeIO( &this->opll, 1, data ); | 28 | OPLL_writeIO( &this->opll, 1, data ); |
29 | } | 29 | } |
30 | 30 | ||
31 | void Ym2413_mute_voices( struct Ym2413_Emu* this, int mask ) | 31 | void Ym2413_mute_voices( struct Ym2413_Emu* this, int mask ) |
32 | { | 32 | { |
33 | OPLL_setMask( &this->opll, mask ); | 33 | OPLL_setMask( &this->opll, mask ); |
34 | } | 34 | } |
35 | 35 | ||
36 | void Ym2413_run( struct Ym2413_Emu* this, int pair_count, short* out ) | 36 | void Ym2413_run( struct Ym2413_Emu* this, int pair_count, short* out ) |
37 | { | 37 | { |
38 | while ( pair_count-- ) | 38 | while ( pair_count-- ) |
39 | { | 39 | { |
40 | int s = OPLL_calc( &this->opll ) << 1; | 40 | int s = OPLL_calc( &this->opll ) << 1; |
41 | out [0] = s; | 41 | out [0] = s; |
42 | out [1] = s; | 42 | out [1] = s; |
43 | out += 2; | 43 | out += 2; |
44 | } | 44 | } |
45 | } | 45 | } |