summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/sms_fm_apu.h
diff options
context:
space:
mode:
authorTorne Wuff <torne@wolfpuppy.org.uk>2011-11-06 22:44:25 +0000
committerTorne Wuff <torne@wolfpuppy.org.uk>2011-11-06 22:44:25 +0000
commit569285794b9112f0134ddad4bb886308ea4a7be6 (patch)
treece702cb07829820261a682c471133c76d11c610e /apps/codecs/libgme/sms_fm_apu.h
parentd9b7d58fa6c9ceb136bea429adf6746cc7138208 (diff)
downloadrockbox-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/sms_fm_apu.h')
-rw-r--r--apps/codecs/libgme/sms_fm_apu.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/apps/codecs/libgme/sms_fm_apu.h b/apps/codecs/libgme/sms_fm_apu.h
index 00bc2b409c..921db6cef1 100644
--- a/apps/codecs/libgme/sms_fm_apu.h
+++ b/apps/codecs/libgme/sms_fm_apu.h
@@ -1,43 +1,43 @@
1#ifndef SMS_FM_APU_H 1#ifndef SMS_FM_APU_H
2#define SMS_FM_APU_H 2#define SMS_FM_APU_H
3 3
4#include "blargg_common.h" 4#include "blargg_common.h"
5#include "blip_buffer.h" 5#include "blip_buffer.h"
6#include "ym2413_emu.h" 6#include "ym2413_emu.h"
7 7
8enum { fm_apu_osc_count = 1 }; 8enum { fm_apu_osc_count = 1 };
9 9
10struct Sms_Fm_Apu { 10struct Sms_Fm_Apu {
11 struct Blip_Buffer* output_; 11 struct Blip_Buffer* output_;
12 blip_time_t next_time; 12 blip_time_t next_time;
13 int last_amp; 13 int last_amp;
14 int addr; 14 int addr;
15 15
16 int clock_; 16 int clock_;
17 int rate_; 17 int rate_;
18 blip_time_t period_; 18 blip_time_t period_;
19 19
20 struct Blip_Synth synth; 20 struct Blip_Synth synth;
21 struct Ym2413_Emu apu; 21 struct Ym2413_Emu apu;
22}; 22};
23 23
24void Fm_apu_create( struct Sms_Fm_Apu* this ); 24void Fm_apu_create( struct Sms_Fm_Apu* this );
25 25
26static inline bool Fm_apu_supported( void ) { return Ym2413_supported(); } 26static inline bool Fm_apu_supported( void ) { return Ym2413_supported(); }
27blargg_err_t Fm_apu_init( struct Sms_Fm_Apu* this, int clock_rate, int sample_rate ); 27blargg_err_t Fm_apu_init( struct Sms_Fm_Apu* this, int clock_rate, int sample_rate );
28 28
29static inline void Fm_apu_set_output( struct Sms_Fm_Apu* this, struct Blip_Buffer* b ) 29static inline void Fm_apu_set_output( struct Sms_Fm_Apu* this, struct Blip_Buffer* b )
30{ 30{
31 this->output_ = b; 31 this->output_ = b;
32} 32}
33 33
34static inline void Fm_apu_volume( struct Sms_Fm_Apu* this, int v ) { Synth_volume( &this->synth, (v*2) / 5 / 4096 ); } 34static inline void Fm_apu_volume( struct Sms_Fm_Apu* this, int v ) { Synth_volume( &this->synth, (v*2) / 5 / 4096 ); }
35 35
36void Fm_apu_reset( struct Sms_Fm_Apu* this ); 36void Fm_apu_reset( struct Sms_Fm_Apu* this );
37 37
38static inline void Fm_apu_write_addr( struct Sms_Fm_Apu* this, int data ) { this->addr = data; } 38static inline void Fm_apu_write_addr( struct Sms_Fm_Apu* this, int data ) { this->addr = data; }
39void Fm_apu_write_data( struct Sms_Fm_Apu* this, blip_time_t, int data ); 39void Fm_apu_write_data( struct Sms_Fm_Apu* this, blip_time_t, int data );
40 40
41void Fm_apu_end_frame( struct Sms_Fm_Apu* this, blip_time_t t ); 41void Fm_apu_end_frame( struct Sms_Fm_Apu* this, blip_time_t t );
42 42
43#endif 43#endif